Get HMR running
See original GitHub issueGet HMR up & running. If supported by default, we should make a flag --hot on a CLI. I believe that switch from Dev Tools is rather useless. All in all, you don’t want to change it during development.
Eventually we might want to change dev tools in Simulator as well (given that it’s been recently allowed), but we will see.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:16 (16 by maintainers)
Top Results From Across the Web
How can I get hot reloading (HMR) running with Webpack 5?
I am trying to get HMR running with webpack v5, but it does not work. When I modify and save a file, webpack...
Read more >Hot Module Replacement - webpack
Hot Module Replacement (or HMR) is one of the most useful features offered by webpack. It allows all kinds of modules to be...
Read more >HMR API - Vite
This is the client HMR API. For handling HMR update in plugins, see handleHotUpdate. The manual HMR API is primarily intended for framework...
Read more >Webpack's Hot Module Replacement Feature Explained
HMR allows you to exchange, add, or remove JavaScript modules while the application is running, all without having to reload the browser.
Read more >Understanding webpack HMR beyond the docs - Jakob Lind
You go out on a hunt to copy-paste webpack configs that you find… ... super smooth developer experience by automatically replace running code...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@SEAPUNK technically it should, feel free to give it a go and share your haul config!
@Kerumen it works, but I was referring to this part specifically https://github.com/facebook/react-native/issues/10991#issuecomment-284453379
I checked
metro-bundlercode and found thatreact-nativeadds HMR handler which probably sends HRM bundle as a JSON string via WebSocket: https://github.com/facebook/react-native/blob/328d8ddb4781dc270d065aa45033b6be565b2c8f/local-cli/server/util/attachHMRServer.js#L202-L389In this case we would definitely need a custom HMR middleware.