fix(breadcrumb): note title update

This commit is contained in:
Vedansh Bodkhe
2026-02-21 14:53:06 +05:30
parent cf4e412ab8
commit 8d94b62db0

View File

@@ -1214,6 +1214,12 @@ export function useNoteTitle(noteId: string | undefined, parentNoteId: string |
refresh();
});
// React to external changes.
useTriliumEvent("entitiesReloaded", ({ loadResults }) => {
if (loadResults.isNoteReloaded(noteId)) {
refresh();
}
});
return title;
}