From 8d94b62db05f5b1cb4e3d993b8ed7f723643724f Mon Sep 17 00:00:00 2001 From: Vedansh Bodkhe Date: Sat, 21 Feb 2026 14:53:06 +0530 Subject: [PATCH 1/2] fix(breadcrumb): note title update --- apps/client/src/widgets/react/hooks.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index c41e1e1a1c..40c5df720e 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -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; } From 52f2e800e781068d1a6e47060d92ec607d599257 Mon Sep 17 00:00:00 2001 From: Vedansh Bodkhe Date: Sat, 21 Feb 2026 15:01:29 +0530 Subject: [PATCH 2/2] Update apps/client/src/widgets/react/hooks.tsx Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- apps/client/src/widgets/react/hooks.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index 40c5df720e..2dd5de4d5f 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -1215,11 +1215,11 @@ export function useNoteTitle(noteId: string | undefined, parentNoteId: string | }); // React to external changes. - useTriliumEvent("entitiesReloaded", ({ loadResults }) => { - if (loadResults.isNoteReloaded(noteId)) { + useTriliumEvent("entitiesReloaded", useCallback(({ loadResults }) => { + if (loadResults.isNoteReloaded(noteId) || (parentNoteId && loadResults.getBranchRows().some(b => b.noteId === noteId && b.parentNoteId === parentNoteId))) { refresh(); } - }); + }, [noteId, parentNoteId, refresh])); return title; }