Skip to content

Issue with Cache and Pagination in useInfiniteQuery #7511

Answered by TkDodo
rvndaputra asked this question in Q&A
Discussion options

You must be logged in to vote

the cache entries are overwriting each other because you use the same queryKey. Everything used inside the queryFn must be part of the queryKey. You are using qs in the queryFn, but it's not part of the key.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rvndaputra
Comment options

Answer selected by rvndaputra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants