all fetched pages get set to the same value as page one using useInfiniteQuery
When hitting back button and returning to a page using useInfiniteQuery, each array/page already fetched will get updated to the result of the first page fetch. This occurs when navigating back using the browser back button.

3 Replies
deep-jade•2y ago
getNextPageParam is required
wise-whiteOP•2y ago
@TkDodo 🔮 what is the proper logic that should be encapsulated in there? my pagination item limit is
12
, but haven't been able to get it to workwise-whiteOP•2y ago
I've got it not resetting the pages data now, but when I
fetchNextPage
it begins fetching from the initial page again