From c1e01467a5fb30d0581f529a434cf3d01ff971e6 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 23 Dec 2025 19:12:18 +0200 Subject: [PATCH] fix(breadcrumbs): not showing on first render --- apps/client/src/widgets/react/hooks.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index 10a5983c6..9a3b690eb 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -369,7 +369,8 @@ export function useActiveNoteContext() { useEffect(() => { setNote(noteContext?.note); - }, [ notePath ]); + setNotePath(noteContext?.notePath); + }, [ notePath, noteContext?.note, noteContext?.notePath ]); useTriliumEvents([ "setNoteContext", "activeContextChanged", "noteSwitchedAndActivated", "noteSwitched" ], () => { const noteContext = appContext.tabManager.getActiveContext() ?? undefined;