gaearon / gaearon/react-hot-loader

Code Splitting + React Hot Loader not compatible ?

Open
#1,272 4 comments 0 reactions 1 assignee Claimed by @theKashey View on GitHub
Dominant language
JavaScript
Stars
12.2k
Forks
775
PR merge metrics
No merged PRs in 30d

Description

### Description

In some case, hmr does not work.

### Reproducible Demo

https://github.com/jinasonlin/react-hot-loader/tree/async-components/examples/async-components

Start the example, then change the code of `Counter`, maybe you can found rhl not work. And I try to use other compatible library that rhl recommend, only `react-loadable` work fine.
React.lazy was work fine.

- Change the `Counter` render
https://github.com/jinasonlin/react-hot-loader/blob/f0c6ab20157ff9c1c1fcad68bf73dcd44f55fefd/examples/async-components/src/Counter2.js#L17

- Use different library
https://github.com/jinasonlin/react-hot-loader/blob/f0c6ab20157ff9c1c1fcad68bf73dcd44f55fefd/examples/async-components/src/App.js#L7-L10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.