mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-21 08:59:07 +01:00
Performance sweep (#147)
This commit is contained in:
@@ -49,7 +49,7 @@ export function useKeyValue<T extends object | boolean | number | string | null>
|
||||
}
|
||||
},
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
[fallback, key, namespace],
|
||||
[typeof key === 'string' ? key : key.join('::'), namespace],
|
||||
);
|
||||
|
||||
const reset = useCallback(async () => mutate.mutateAsync(fallback), [mutate, fallback]);
|
||||
|
||||
Reference in New Issue
Block a user