Fix linter and fix lint issues (#10141)

This commit is contained in:
Nicolas Mowen
2024-02-28 15:23:56 -07:00
committed by GitHub
parent b6ef1e4330
commit 3bf2a496e1
63 changed files with 527 additions and 418 deletions

View File

@@ -9,7 +9,7 @@ type usePersistenceReturn<S> = [
export function usePersistence<S>(
key: string,
defaultValue: S | undefined = undefined
defaultValue: S | undefined = undefined,
): usePersistenceReturn<S> {
const [value, setInternalValue] = useState<S | undefined>(defaultValue);
const [loaded, setLoaded] = useState<boolean>(false);
@@ -23,7 +23,7 @@ export function usePersistence<S>(
update();
},
[key]
[key],
);
useEffect(() => {