Hi there!
First of all - thank you for a great tool! )
I am using MockAdapter in storybook environment during development phase.
I have a form where I am performing server field validation.
For that to look more real I am using a combination of:
In real app token.cancel will lead to an almost instant reaction of a request been aborted.
While in my case with a MockAdapter I need to wait for the 5000ms to complete and only after that I get a request failure.
What do you think of an option to abort request immediately based on axios.CancelToken?
Hi there! First of all - thank you for a great tool! )
I am using
MockAdapter
in storybook environment during development phase. I have a form where I am performing server field validation. For that to look more real I am using a combination of:In real app
token.cancel
will lead to an almost instant reaction of a request been aborted. While in my case with aMockAdapter
I need to wait for the5000
ms to complete and only after that I get a request failure.What do you think of an option to abort request immediately based on
axios.CancelToken
?