fix(explore): prevent infinite loop when loading nostrverse content

- Remove cachedHighlights, cachedWritings, myHighlights from useEffect deps
- These are derived from eventStore and caused infinite refetch loop
- Content is still seeded from cache but doesn't trigger re-fetches
This commit is contained in:
Gigi
2025-10-18 23:54:02 +02:00
parent 20b4f2b1b2
commit 179fe0bbc2

View File

@@ -319,7 +319,8 @@ const Explore: React.FC<ExploreProps> = ({ relayPool, eventStore, settings, acti
}
loadData()
}, [relayPool, activeAccount, refreshTrigger, eventStore, settings, myHighlights, cachedHighlights, cachedWritings])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [relayPool, activeAccount, refreshTrigger, eventStore, settings])
// Pull-to-refresh
const { isRefreshing, pullPosition } = usePullToRefresh({