How to use React Query with React's Context API
I am attempting to refactor a Provider component, where state is being handled, e.g.
Below are examples of functions which are CRUD operations:
My understanding is to be able to refactor this would involve the use of the
Below are examples of functions which are CRUD operations:
My understanding is to be able to refactor this would involve the use of the
useMutation hook. However, I am not sure where to start and any pointers/examples would be very much appreciated!