T
TanStack16mo ago
variable-lime

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
eastern-cyan
eastern-cyan16mo ago
Your api does not like your page param??
variable-lime
variable-limeOP16mo 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?