Overriding default config ( request timeout ) for a request. #34
Answered
by
ElMassimo
rachitpant
asked this question in
Q&A
-
I have an automatically generated path , for which i want to change the default axios timeout period. Is that possible. There are several automatically generated routes for this resource ( all in a single file ) , but i just want to overwrite the timeout for one of these routes. |
Beta Was this translation helpful? Give feedback.
Answered by
ElMassimo
Jan 16, 2023
Replies: 1 comment 1 reply
-
You should be able to pass the If you need to call that helper in several places, you could encapsulate the call using a function, to ensure it's always called using the same timeout. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ElMassimo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to pass the
timeout
option to Axios when calling the helper for that route.If you need to call that helper in several places, you could encapsulate the call using a function, to ensure it's always called using the same timeout.