Infinite query fetches next page on every rerender. Why?
I toggle a setting
The queryKey is stable (otherwise it probably would start at page 0 again).
Here is how I use the query:
useEvents is this:
Is this by design? How can I stop that from happening?
showOwnOnly which triggers a rerender. On that rerender, I can see, that the infiniste query i am using fetches the next page.The queryKey is stable (otherwise it probably would start at page 0 again).
Here is how I use the query:
useEvents is this:
Is this by design? How can I stop that from happening?