Skip to content
Discussion options

You must be logged in to vote

In vue-query you can instruct the library to never automatically refetch data it has already cached using staleTime: Infinity. This means that once the library successfully fetches data for a specific query key, it will always return that cached data for subsequent requests with the same key.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jordydejong
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
3 participants