Skip to content
Discussion options

You must be logged in to vote

Perhaps this is what I'm looking for? https://react-query.tanstack.com/guides/initial-query-data#initial-data-from-cache

yes, that’s exactly what you want. You’d likely need a small staleTime to avoid an instant background refetch. I’venust recently written about this: https://tkdodo.eu/blog/placeholder-and-initial-data-in-react-query

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant