Skip to content
Discussion options

You must be logged in to vote

invalidateQueries method lets us mark queries as stale and refetch them as well.

that is still the case. note that only active queries are refetched immediately. that hasn't changed.

Specifically, after the mutation to change the user name has been executed in a tab, the user name is also updated on the other tab too.

not sure what "other tab" means exactly. unless you have used the experimental broadcast-channel plugin, browser tabs don't know about each other.

note that there was a change to how refetchOnWindowFocus works in v5. maybe you've just seen a refetch on window focus before?

Replies: 1 comment 1 reply

Comment options

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

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