T
TanStack2y ago
correct-apricot

I have a useInfiniteQuery fetches the same duplicate data for the first 2 requests

Is there a scenario where a duplicate fetch of data would happen when using useInfiniteQuery?
2 Replies
metropolitan-bronze
metropolitan-bronze2y ago
Your api does not like your page param??
correct-apricot
correct-apricotOP2y ago
Kinda, but the problem was that I was using the url for my param and on first render I forgot to set the param, so until I set it onClick it just sends 0

Did you find this page helpful?