diff --git a/src/App.tsx b/src/App.tsx index 4cfbf471..dd1e2c6c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -59,6 +59,14 @@ function AppRoutes({ } }, []) + // Auto-load bookmarks when account is ready (on login or page mount) + useEffect(() => { + if (activeAccount && relayPool && bookmarks.length === 0 && !bookmarksLoading) { + console.log('[bookmark] 🚀 Auto-loading bookmarks on mount/login') + bookmarkController.start({ relayPool, activeAccount, accountManager }) + } + }, [activeAccount, relayPool, bookmarks.length, bookmarksLoading, accountManager]) + // Manual refresh (for sidebar button) const handleRefreshBookmarks = useCallback(async () => { if (!relayPool || !activeAccount) {