Have to refresh for browser to continue to render components #1177
-
Hi, I'm trying to use msw to mock rest requests in the browser to create a demo environment and I have followed the setup steps. Everything is set up per the guides and I can see The page seemingly needs to be refreshed each time the URL changes for the react components to continue rendering. Video for context. Note the URL changes each time I refresh. Screen.Recording.2022-03-22.at.6.32.10.PM.movI was hoping for help troubleshooting this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, @KadeerAmin. Do you have a reproduction repository where I can look into this? It doesn't seem to be an issue with MSW. Could you please take the following steps to be sure:
This kind of issue is possible conceptually if the worker intercepts static assets. However, we have an explicit logic in the worker script to ignore static assets and I believe it's functioning correctly. |
Beta Was this translation helpful? Give feedback.
Hey, @KadeerAmin.
Do you have a reproduction repository where I can look into this? It doesn't seem to be an issue with MSW. Could you please take the following steps to be sure:
npm i msw@latest
. Also, don't forget to update the worker script if you're not usingmsw.workerDirectory
property in your package.json.This kind of issue is possible conceptually if the worker intercepts static assets. However, we have an explicit logic…