using initial data only on first fetch
I am filling the initial data for 5 queries from the response of one top level query (to prevent 5 calls). However, when I change the query key for any of these queries, I want it to refetch without using the initial data again.
How can I do this?
For more context - I am using this in a pagination setting where the first page of 5 tables is fetched using 1 call and then when the user clicks next page on any of these tables, I want it to fetch the second page without using the initial data (which was meant only for the first page)
1 Reply
stormy-goldOP•2y ago
figured it out! Just put a condition on the initial data