Implement DI with Tanstack and context API
I have decided to use a service layer to manage my API/Server calls in my React app. I’m using Tanstack Query (useQuery and useMutation) in my components, and API context, but really want to keep a maximum of separation, mainly between service layer and the reste of the flow;