diff --git a/src/App.tsx b/src/App.tsx index 490f9bd8..04243d71 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -40,6 +40,7 @@ function App() { // Note: We could use pool.group(relayUrls) for direct requests in the future pool.group(relayUrls) console.log('Created relay group with', relayUrls.length, 'relays') + console.log('Relay URLs:', relayUrls) // Create address loader using the pool directly // The pool will handle relay connections and the address loader will use the group diff --git a/src/components/Bookmarks.tsx b/src/components/Bookmarks.tsx index 83b49f64..222293b5 100644 --- a/src/components/Bookmarks.tsx +++ b/src/components/Bookmarks.tsx @@ -52,8 +52,14 @@ const Bookmarks: React.FC = ({ addressLoader, onLogout }) => { const profile = useEventModel(Models.ProfileModel, activeAccount ? [activeAccount.pubkey] : null) useEffect(() => { + console.log('Bookmarks useEffect triggered') + console.log('addressLoader:', !!addressLoader) + console.log('activeAccount:', !!activeAccount) if (addressLoader && activeAccount) { + console.log('Starting to fetch bookmarks...') fetchBookmarks() + } else { + console.log('Not fetching bookmarks - missing dependencies') } }, [addressLoader, activeAccount]) @@ -63,6 +69,7 @@ const Bookmarks: React.FC = ({ addressLoader, onLogout }) => { try { setLoading(true) console.log('Fetching bookmarks for pubkey:', activeAccount.pubkey) + alert('Starting bookmark fetch for: ' + activeAccount.pubkey.slice(0, 8) + '...') // Use applesauce address loader to fetch bookmark lists (kind 10003) // This is the proper way according to NIP-51 and applesauce documentation