We will be utilizing both
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.
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.