Skip to content
Discussion options

You must be logged in to vote

So why would you need it to be in active state? As you said, only queries that have observers (rendered components via useQuery etc) are active. A query that is inactive will be garbage-collected after the cacheTime is reached - defaults to 5 minutes. If I got this right and you are only fetching, but never rendering, you can just increase the cacheTime and you data will be available via queryCache.getQueryData.

Replies: 1 comment 17 replies

Comment options

You must be logged in to vote
17 replies
@TkDodo
Comment options

@sathish-karunakaran
Comment options

@TkDodo
Comment options

@bombillazo
Comment options

@TkDodo
Comment options

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