mirror of
https://github.com/zadam/trilium.git
synced 2026-01-10 16:44:29 +01:00
chore(client/save_indicator): fix some spacing issues
This commit is contained in:
parent
02e08fdf12
commit
80363cdc73
@ -43,7 +43,7 @@ export interface NoteContextDataMap {
|
||||
};
|
||||
saveState: {
|
||||
state: SaveState;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
type ContextDataKey = keyof NoteContextDataMap;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user