Replies: 2 comments
-
Agree. It will be great 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any news on this ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the "axios" mode in Orval generates code that uses either :
What can be good, is to propose a mode to let the client give his own axiosInstance. This should be only possible with the
axios
mode.Example :
Before :
After :
This would allow for more flexibility and control over the network requests, especially in cases where multiple instances with different configurations are needed.
This feature would simplify the code and make it more versatile, as it would allow for the management of multiple cases with different Axios instances.
By using the provided axiosInstance instead of the default axios, the generated code becomes more flexible and adaptable to various project requirements.
This can be achieved as something as simple as :
Beta Was this translation helpful? Give feedback.
All reactions