Add missing dependency in usePriority due to state invalidation
kitten.sh 3 years ago ec879d16 95748d15
··· 50 50 listeners.delete(onChange); 51 51 listeners.forEach(fn => fn()); 52 52 }; 53 53 - }, [ref.current, isDisabled]); 53 53 + }, [ref.current, hasPriority, isDisabled]); 54 54 55 55 return hasPriority; 56 56 };