Mirror: React hooks for accessible, common web interactions. UI super powers without the UI.

Add missing dependency in usePriority due to state invalidation

Changed files
+1 -1
src
+1 -1
src/usePriority.ts
··· 50 50 listeners.delete(onChange); 51 51 listeners.forEach(fn => fn()); 52 52 }; 53 - }, [ref.current, isDisabled]); 53 + }, [ref.current, hasPriority, isDisabled]); 54 54 55 55 return hasPriority; 56 56 };