Skip to content

Build your personal knowledge base with Trilium Notes

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.tsx
index 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;