sendBeacon
causes infinite loop with response patching
#1216
Labels
bug
Something isn't working
help wanted
Extra attention is needed
scope:browser
Related to MSW running in a browser
Prerequisites
Environment check
msw
versionBrowsers
Chromium (Chrome, Brave, etc.), Firefox, Safari
Reproduction repository
https://github.com/hpohlmeyer/msw-send-beacon-loop
Reproduction steps
git clone https://github.com/hpohlmeyer/msw-send-beacon-loop.git
npm install
in the root foldernpm start
Current behavior
It looks like
ctx.fetch(req)
does not seem to bypass msw and triggers the same request over and over again, causing an infinite request loop.Expected behavior
ctx.fetch(req)
should bypass msw and not trigger the same route handler again.The text was updated successfully, but these errors were encountered: