Skip to content
Discussion options

You must be logged in to vote

I think you are looking for:

queryClient.invalidateQueries('entries', { refetchActive: false })

from the docs:

refetchActive: Boolean
Defaults to true
When set to false, queries that match the refetch predicate and are actively being rendered via useQuery and friends will NOT be refetched in the background, and only marked as invalid.

Replies: 3 comments 2 replies

Comment options

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

Comment options

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

Answer selected by donysukardi
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
2 participants