From 774ce0f1bf002d3c6bb7be0bbbc778c938c35c4b Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 2 Oct 2025 09:14:24 +0200 Subject: [PATCH] debug: add detailed logging to fetchBookmarks function - Add console logs to track if fetchBookmarks is called - Log early return conditions - This will help identify why the function might not be executing --- src/components/Bookmarks.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Bookmarks.tsx b/src/components/Bookmarks.tsx index 55fef3b6..498171fd 100644 --- a/src/components/Bookmarks.tsx +++ b/src/components/Bookmarks.tsx @@ -74,7 +74,11 @@ const Bookmarks: React.FC = ({ relayPool, onLogout }) => { }, [relayPool, activeAccount?.pubkey]) // Only depend on pubkey, not the entire activeAccount object const fetchBookmarks = async () => { - if (!relayPool || !activeAccount || loading) return + console.log('🔍 fetchBookmarks called, loading:', loading) + if (!relayPool || !activeAccount || loading) { + console.log('🔍 fetchBookmarks early return - relayPool:', !!relayPool, 'activeAccount:', !!activeAccount, 'loading:', loading) + return + } try { setLoading(true)