Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(client/save_indicator): fix some spacing issues
Elian Doran80363cdc7338
diff --git a/apps/client/src/components/note_context.ts b/apps/client/src/components/note_context.tsindex 2ea352581a..afcaaf0918 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.tsxindex 7d1d421faa..7fade29b97 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<void>, interval =// Update callback ref when it changesuseEffect(() => {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 changesuseEffect(() => {spacedUpdateRef.current?.setUpdateInterval(interval);- }, [interval]);+ }, [ interval ]);return spacedUpdateRef.current;}