diff --git a/apps/client/src/components/note_context.ts b/apps/client/src/components/note_context.ts index 2ea352581..afcaaf091 100644 --- a/apps/client/src/components/note_context.ts +++ b/apps/client/src/components/note_context.ts @@ -43,7 +43,7 @@ export interface NoteContextDataMap { }; saveState: { state: SaveState; - } + }; } type ContextDataKey = keyof NoteContextDataMap; diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index 7d1d421fa..7fade29b9 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -75,7 +75,7 @@ export function useSpacedUpdate(callback: () => void | Promise, interval = // Update callback ref when it changes useEffect(() => { callbackRef.current = callback; - }, [callback]); + }, [ callback ]); // Update state callback when it changes. useEffect(() => { @@ -85,7 +85,7 @@ export function useSpacedUpdate(callback: () => void | Promise, interval = // Update interval if it changes useEffect(() => { spacedUpdateRef.current?.setUpdateInterval(interval); - }, [interval]); + }, [ interval ]); return spacedUpdateRef.current; }