Skip to content
Discussion options

You must be logged in to vote

you can set keepPreviousData: true to show the data from the previous query key when the key changes. You'll also get isPreviousData: true returned while the previous data is rendered. That way, you won't get a hard loading state, so no suspense, and you can still stick to keeping all the dependencies (from & to) in the query key.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ctessier
Comment options

Answer selected by ctessier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants