TanStackT
TanStack4y ago
1 reply
sacred-rose

Mutation without hooks

After reading this article (https://medium.com/duda/what-i-learned-from-react-query-and-why-i-will-not-use-it-in-my-next-project-a459f3e91887), that states you can only use react-query with hooks and reading react-queries maintainer Dominik Dorfmeister replying that "react-query also is not per se hooks driven" I'm left wondering how one could do mutations without hooks? For queries there is queryClient.fetchQuery, but I found no counterpart for mutations in the docs.
Medium
Was this page helpful?