Improve Dropdown selection handling

This commit is contained in:
Gregory Schier committed 2025-01-11 08:15:45 -08:00
1 parent 3b56f4e142
commit 3d3ff2824f
3 files changed
+75 -59

No files matched your search

+1 -1
View File
@@ -9,6 +9,6 @@ export function useStateWithDeps<T>(defaultValue: T, deps: DependencyList) {
useEffect(() => {
setValue(defaultValue);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, deps);
}, [...deps]);
return [value, setValue] as const;
}