Skip to content

Commit e66acaa

Browse files
Fix notifications not loading after v-show mount change
Panel now mounts before auth completes, so loadNotifications() bailed with no userId. Added watcher to reload once userId becomes available. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d45370c commit e66acaa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/NotificationFeedPanel.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ onUnmounted(() => {
3131
document.removeEventListener('mousedown', onDocClick, true);
3232
});
3333
34+
// Panel mounts before auth completes (v-show), so reload once userId is available
35+
watch(() => backend.userId, (id) => {
36+
if (id) backend.loadNotifications();
37+
});
38+
3439
// Close detail overlay when panel hides
3540
watch(() => props.visible, (v) => {
3641
if (!v) {

0 commit comments

Comments
 (0)