feat(04-02): wire notification-click event handler in renderer
- Add notification-click handler in App.tsx IPC event subscription - Calls navigateTo(section, entityId) for instant navigation to target entity - Handler returns early to avoid unnecessary snapshot reload via batcher
This commit is contained in:
1 parent
667ac48aa5
commit
071eef43a2
1 file changed
+4
@@ -318,6 +318,10 @@ export function App() {
|
||||
if (event.action === "refresh") void refreshRef.current();
|
||||
return;
|
||||
}
|
||||
if (event.type === "notification-click") {
|
||||
store.getState().navigateTo(event.section, event.entityId);
|
||||
return;
|
||||
}
|
||||
// All data-mutating events: batch the snapshot reload
|
||||
batcher.schedule();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user