Skip to content
Discussion options

You must be logged in to vote

Hi 👋

It feels to me that setQueryData should not fire the onSuccess.

I have tested this in both v3 and v2, and in both cases, onSuccess seems to be called, have a look: https://codesandbox.io/s/musing-thompson-3h34e

So I guess it is intended, but I would've also thought otherwise 🤔

PS: where's the direct link to the v2 docs?

v2 docs now live under: https://react-query-v2.tanstack.com/

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@robinclaes
Comment options

@TkDodo
Comment options

@robinclaes
Comment options

@pawlarius
Comment options

@TkDodo
Comment options

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