Great article, however I am unclear how you passed the option refetchQueries in useMutation. It does not seem to be an available option in the documentation? Did you mean QueryCache?
Hmm i used the refrence for useMutation from a jsconf video i saw a few weeks ago, myabe you can use the refetchQueries in QueryClient in the onSuccess method passed in useMutation options.
Check this link
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article, however I am unclear how you passed the option
refetchQueriesinuseMutation. It does not seem to be an available option in the documentation? Did you meanQueryCache?Hmm i used the refrence for
useMutationfrom a jsconf video i saw a few weeks ago, myabe you can use the refetchQueries in QueryClient in the onSuccess method passed inuseMutationoptions.Check this link