fix(breadcrumbs): not showing on first render

This commit is contained in:
Elian Doran 2025-12-23 19:12:18 +02:00
parent b8d933d308
commit c1e01467a5
No known key found for this signature in database

View File

@ -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;