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
intense-chocolate•2y ago
What is your use case?
fair-rose•2y ago
A basic example would look like this: