chore(client/save_indicator): fix some spacing issues

This commit is contained in:
Elian Doran 2026-01-03 19:53:46 +02:00
parent 02e08fdf12
commit 80363cdc73
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ export interface NoteContextDataMap {
};
saveState: {
state: SaveState;
}
};
}
type ContextDataKey = keyof NoteContextDataMap;

View File

@ -75,7 +75,7 @@ export function useSpacedUpdate(callback: () => void | Promise<void>, 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<void>, interval =
// Update interval if it changes
useEffect(() => {
spacedUpdateRef.current?.setUpdateInterval(interval);
}, [interval]);
}, [ interval ]);
return spacedUpdateRef.current;
}