Skip to content
Discussion options

You must be logged in to vote

You can do queryClient.invalidateQueries() without patenteres and it weil invalidate all of them. Also have a look at fuzzy query key matching: https://react-query.tanstack.com/guides/filters#query-filters

on logout, you might want removeQueries rather than invalidateQueries though

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@apoorvmote
Comment options

@TkDodo
Comment options

@benadamstyles
Comment options

@TkDodo
Comment options

Answer selected by apoorvmote
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