Skip to content
Discussion options

You must be logged in to vote

It could be that onSuccess is not called because the subscriber has already unmounted. Can you create a reproduction in codesandbox?

if that’s the case, you could try queryClient.fetchQuery rather than refetch

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rasmusfiskerbang
Comment options

@TkDodo
Comment options

@TkDodo
Comment options

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