Skip to content

Overriding default config ( request timeout ) for a request. #34

Answered by ElMassimo
rachitpant asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rachitpant
Comment options

Answer selected by ElMassimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants