fix: correct profile fetching implementation and dependencies

- Use eventStore.add() directly instead of mapEventsToStore
- Use tap() operator to process and store events as they arrive
- Add eventStore and settings to useEffect dependencies
- Fixes TypeScript and ESLint errors
This commit is contained in:
Gigi
2025-10-14 12:00:52 +02:00
parent 420df1fbdd
commit 9aff889835
2 changed files with 10 additions and 10 deletions

View File

@@ -197,7 +197,7 @@ const Explore: React.FC<ExploreProps> = ({ relayPool, eventStore, settings, acti
}
loadData()
}, [relayPool, activeAccount, blogPosts.length, highlights.length, refreshTrigger])
}, [relayPool, activeAccount, blogPosts.length, highlights.length, refreshTrigger, eventStore, settings])
// Pull-to-refresh
const pullToRefreshState = usePullToRefresh(exploreContainerRef, {