mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-22 16:24:11 +01:00
Improve Dropdown selection handling
This commit is contained in:
1 parent
3b56f4e142
commit
3d3ff2824f
3 files changed
+75
-59
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user