Bypass loading state between two queries
Let's say you are iterating over a paginated list where each page data is fetched with useQuery
How to avoid the spinner during the time where the data is getting fetched?
In most cases, and assuming that the queries are optimized enough, you'd rather want to show the page1 data for some amount of time until we receive page2 data, and avoid the spinner phase.
I could not find what is the canonical way of doing this with tanstack query- any pointers appreciated!
How to avoid the spinner during the time where the data is getting fetched?
In most cases, and assuming that the queries are optimized enough, you'd rather want to show the page1 data for some amount of time until we receive page2 data, and avoid the spinner phase.
I could not find what is the canonical way of doing this with tanstack query- any pointers appreciated!