mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-25 02:41:07 +01:00
Improve Dropdown selection handling
This commit is contained in:
@@ -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