Open usersina opened 9 months ago
Hi, @usersina
It varies by client, so please refer to your client's reference. As a workaround, it might be possible to reference the http client directly. I checked some client references, but unfortunately it didn't seem possible to access the response headers. Also consider using the HTTP client directly as a workaround.
Feature request
I sometimes need to do more than the given default options. For example, adding a custom config option to extend the custom axios instance's behavior.
Concrete example: File upload progress
1. Problem
A generated upload hook function with a
react-query
client and a custom axios instance looks like this:It would then be used as follows in the application code:
The problem here is that if I want to track the upload progress, I currently have no way of doing this.
2. Possible Solution
Achieving this is possible by potentially providing additional configuration information to the internally called hook function.
Related issues