mirror of
https://github.com/zadam/trilium.git
synced 2025-12-31 11:44:23 +01:00
fix(breadcrumbs): not showing on first render
This commit is contained in:
parent
b8d933d308
commit
c1e01467a5
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user