HMR is inconsistent on SDK 26 Android
See original GitHub issueEnvironment
Expo XDE : v2.24.3 Expo Client : Android - v2.4.0 Development Environment : Mac OSX High Sierra + VSCode Development Clients : Android (One plus3t - through expo client - QR Code Scanned), iOS simulator (iPhone X - ios 11.x)
Steps to Reproduce
- Created a project through Expo XDE and compiled it with settings viz. Host - LAN, exp (tried both).
- Compiled and scanned the QR code on my android app home screen properly. Disabled live reloading and enabled hot reloading.
- Hot reloading works with a toast each time I edit my app.js file. I also see a log on my console stating that
patched app.js successfully
- Now, I restart the project by pulling the notification panel down and clicking the reload button on the notification tray (expo notification tray).
- The app appears now with the changes I made, however, when I now start editing the js file and save , I see a toast on my Android
hot reloading...
however, the changes aren’t visible in the device and also I don’t see the log now that statespatched app.js
.
I have watchman 4.9.0
and I even tried removing node_modules
folder and reinstalling it again through yarn install
/ npm install
. But doesn’t seem to work either.
I tried reinstalling watchman too but that doesn’t seem to work either.
I tried downloading and re-installing Expo XDE
as well, with no luck.
Expected Behavior
Irrespective of whether I reload the app or work without reloading, every time I save I see hot reloading working fine. But with the latest XDE after this upgrade I see the Hot Reloading doesn’t work as expected.
Is there anyone experiencing the same issue with this latest version ? Any help on this is much appreciated. Thanks in advance.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Hi @kkrishnan90 - this is actually (most likely) an issue with the version of React Native that’s used in Expo SDK 26. We’re hoping it will be fixed in the next SDK release, but in the meantime, it might just take a few tries to get hot reloading to work, or you might need to resort to live reload instead. Sorry for the inconvenice! ☹️
Hey there ! Thanks for your response. Yeah I figured it out. So for now, I’m just downgrading the expo SDK and using it. Kindly do let us know once the issue is fixed.