mirror of
https://github.com/dergigi/boris.git
synced 2026-01-09 18:04:41 +01:00
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
This commit is contained in:
@@ -74,7 +74,11 @@ const Bookmarks: React.FC<BookmarksProps> = ({ 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)
|
||||
|
||||
Reference in New Issue
Block a user