How to get fast refresh/hmr working when using metro to bundle web #478
Unanswered
mackenziekira
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Edit: see #493 for resolution
We haven't switched over to trying Expo Router yet, but in preparation we switched to use Metro to bundle our web app instead of webpack.
I added
import "@expo/metro-runtime";
to the head of ourApp.js
file, but when running the web app, I cannot see changes reflected via hmr. I have to do a full page reload to get changes to show up.Am I missing something? I created a MRE repo:
https://github.com/mackenziekira/metro-web-fast-refresh
If you clone, install deps, and run
yarn web
, you can see changes reflected if you change the text string inApp.js
, but not if you make the exact same change in the importedGreeting.js
component.Beta Was this translation helpful? Give feedback.
All reactions