worker.start must async, otherwise msw will slow then the first request #2363
Fallsleep
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my project, the app will get user info if cookie has user token immediately after page loaded.
After upgrage to 2.x, this request run into backend server instead of msw worker.
I have long time not working with this project, and today I work on it again.
After some try and search, I find if
worker.start
set to asyncawait
, the request run well:Beta Was this translation helpful? Give feedback.
All reactions