auto apply oxfmt rules

This commit is contained in:
2026-09-29 09:03:49 +02:00
parent 3fde18106d
commit 216dc70605
102 changed files with 36939 additions and 27387 deletions
+3 -19
View File
@@ -26,15 +26,9 @@ const useFormPersist = (
) => {
const watchedValues = watch();
const getStorage = useCallback(
() => storage || window.sessionStorage,
[storage],
);
const getStorage = useCallback(() => storage || window.sessionStorage, [storage]);
const clearStorage = useCallback(
() => getStorage().removeItem(name),
[getStorage, name],
);
const clearStorage = useCallback(() => getStorage().removeItem(name), [getStorage, name]);
useEffect(() => {
const storedValuesJSON = getStorage().getItem(name);
@@ -58,17 +52,7 @@ const useFormPersist = (
return () => getStorage().setItem(name, JSON.stringify(dataRestored));
}
}, [
storage,
name,
setValue,
clearStorage,
dirty,
exclude,
touch,
validate,
getStorage,
]);
}, [storage, name, setValue, clearStorage, dirty, exclude, touch, validate, getStorage]);
useEffect(() => {
const values =