1. 3
    Use React Query's useMutation and queryCache
    6m 39s

Use React Query's useMutation and queryCache

Domitrius Clark
InstructorDomitrius Clark

Share this video with your friends

Send Tweet

We will be utilizing both useMutation and queryCache to set up a new favorites list. The queryCache will act as a "store" and allow us to use useMutation to update values and display a new list of favorites that we created from our characters query.

Craig Doremus
Craig Doremus
~ 5 months ago

I've updated the code from react-query 1.0 to 3.5 here: https://codesandbox.io/s/egghead-react-query3-2qmes?file=/src/App.js:1692-1700 You'll notice that the API has changed significantly.