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
fix(status_bar): code mime not updating between notes
Elian Doran40fcf7977854
diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsxindex d314707f2d..0b95466949 100644--- a/apps/client/src/widgets/react/hooks.tsx+++ b/apps/client/src/widgets/react/hooks.tsx@@ -349,7 +349,7 @@ export function useActiveNoteContext() {useEffect(() => {setNote(noteContext?.note);- }, [ noteContext ]);+ }, [ notePath ]);useTriliumEvents([ "setNoteContext", "activeContextChanged", "noteSwitchedAndActivated", "noteSwitched" ], () => {const noteContext = appContext.tabManager.getActiveContext() ?? undefined;