mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 09:36:43 +03:00
Examples: fixed HMR of components issue (#303)
This commit is contained in:
parent
fafe4e5d59
commit
619a18b26a
|
@ -17,9 +17,10 @@ render(
|
||||||
|
|
||||||
if (module.hot) {
|
if (module.hot) {
|
||||||
module.hot.accept('./containers/Root', () => {
|
module.hot.accept('./containers/Root', () => {
|
||||||
|
const RootContainer = require('./containers/Root').default;
|
||||||
render(
|
render(
|
||||||
<AppContainer>
|
<AppContainer>
|
||||||
<Root
|
<RootContainer
|
||||||
store={ store }
|
store={ store }
|
||||||
/>
|
/>
|
||||||
</AppContainer>,
|
</AppContainer>,
|
||||||
|
|
|
@ -18,9 +18,10 @@ render(
|
||||||
|
|
||||||
if (module.hot) {
|
if (module.hot) {
|
||||||
module.hot.accept('./containers/Root', () => {
|
module.hot.accept('./containers/Root', () => {
|
||||||
|
const RootContainer = require('./containers/Root').default;
|
||||||
render(
|
render(
|
||||||
<AppContainer>
|
<AppContainer>
|
||||||
<Root
|
<RootContainer
|
||||||
store={ store }
|
store={ store }
|
||||||
/>
|
/>
|
||||||
</AppContainer>,
|
</AppContainer>,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user