Skip to content

Conversation

@nayounsang
Copy link

Based on this issue, I have written an additional explanation based on the internal code for resetHandlers().

Is this the right documentation issue you're looking for?
If not, please provide more detailed context and I will correct it.

@vercel
Copy link

vercel bot commented Jan 27, 2025

@nayounsang is attempting to deploy a commit to the MSW Team on Vercel.

A member of the Team first needs to authorize it.

@kettanaito kettanaito force-pushed the main branch 2 times, most recently from 7710ef8 to 1fc73d3 Compare September 20, 2025 11:25
@kettanaito
Copy link
Member

I believe this is already explained in here:

https://mswjs.io/docs/api/setup-worker/reset-handlers#call-signature

And then here:

https://mswjs.io/docs/best-practices/network-behavior-overrides#resetting-request-handlers

I would rather not explain the internal logic in the docs, it's irrelevant for the user.

@nayounsang are the referenced pages above cover the behavior? Do you think something is still missing? They do mention how .resetHandlers() works with and without arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants