We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds a new behavior
I want to have what was described here #260 , but isn't usable anymore since V2.
Basically add a delay() before each request. What would the suggested approach to this be?
delay()
I tried using the lifecycle methods but had no success.
The text was updated successfully, but these errors were encountered:
https://mswjs.io/docs/api/delay Have you tried this one?
Sorry, something went wrong.
Sure, but it requires me to manually set a delay for each handler, which is not what I want. I want a delay before EVERY request.
You can do something like a higher-order resolver similar to these:
https://mswjs.io/docs/recipes/higher-order-resolver. It still requires manually wrapping each handler's resolver with that per handled request, but provides a good mechanism for handling those
No branches or pull requests
Scope
Adds a new behavior
Compatibility
Feature description
I want to have what was described here #260 , but isn't usable anymore since V2.
Basically add a
delay()
before each request. What would the suggested approach to this be?I tried using the lifecycle methods but had no success.
The text was updated successfully, but these errors were encountered: