Using react-query with Axios and intercepting requests and responses
Does anyone have a good example of using react-query with Axios and intercepting requests and responses? I googled it quite a bit and couldn't find any good examples. I am using react-query for the first time. From the tutorials I've looked it, it seems pretty straight forward for basic use cases. Just struggling with this example.
2 Replies
fascinating-indigo•2y ago
What is your use case?
xenial-black•2y ago
A basic example would look like this: