DEV Community

Discussion on: Abstracting with react hooks on LSD

Collapse
 
myrtletree33 profile image
jhtong • Edited

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?

Collapse
 
patheticgeek profile image
Pathetic Geek

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