HMR not refreshing
See original GitHub issueI think I have followed all the parts on the implementing react-native with HMR.
I’m getting the following logs:
[Haul HMR] Client connected, however until you Enable Hot Reloading, you will not get any updates
hotClient.js?485c:24 [Haul HMR] Bundle rebuilding
hotClient.js?485c:24 [Haul HMR] Bundle rebuilt in 1158ms
process-update.js?e13e:41 [HMR] Checking for updates on the server…
process-update.js?e13e:114 [HMR] Updated modules:
process-update.js?e13e:116 [HMR] - ./src/components/service-method-selection/service-method-page.tsx
process-update.js?e13e:116 [HMR] - ./src/components/service-method-selection/index.ts
process-update.js?e13e:116 [HMR] - ./src/components/index.ts
process-update.js?e13e:116 [HMR] - ./src/navigators/app-navigator.tsx
process-update.js?e13e:121 [HMR] App is up to date.
But the page doesn’t update until I change navigation.
any thoughts?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)

Top Related StackOverflow Question
@jrwpatterson
There’s a high chance that the HMR is not working for you, because your component might have not been registered by
react-hot-loader.Usually this is done in Babel config by using
react-hot-loader/babelplugin. However since, you are using TS, this means that.ts/.tsxfiles will (probably) be processed only byawesome-typescript-loader.So, here’s what you can do:
babel-loaderto your/\.tsx?$/rule inwebpack.haul.jsas shown below:react-hot-loader/webpackto your/\.tsx?$/rule inwebpack.haul.jsas shown below:EDIT: since in
awesome-typescript-loaderoptionsuseBabelis set totrueyou can try passingreact-hot-loader/babelplugin to it somehow or adding it to.babelrc.Closing due to inactivity and the fact that in
@haul-bundler/cliwe dropped support for HMR.