Difference between infinite query and use-query
Hello all, I am wondering if someone could help me out, I am having a weird issue with infinite query
- The first one would be as you can see when i switch pages(URL) it seems like the infinite query still runs because it returns data, and it shouldn't it should only log on the page where it was used
- also if you see the network tab it seems to refetch more than it should on mount and window foucs now when i play with the setting like setting
what is strange is that if i do it with
refetchOnMount as false, it does not fetch but should not be the correct behavior if i am changing to the tab it should runwhat is strange is that if i do it with
useQuery it works as expected that it only runs the code once in terms of fetching and also it only logs data in the page where it was used any ideas?0 Replies