mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-29 01:19:48 +03:00
Fixed component HRM issue
This commit is contained in:
parent
6a03536653
commit
5e32962e5e
|
@ -10,16 +10,17 @@ render(
|
||||||
<AppContainer>
|
<AppContainer>
|
||||||
<Root
|
<Root
|
||||||
store={ store }
|
store={ store }
|
||||||
/>
|
/>
|
||||||
</AppContainer>,
|
</AppContainer>,
|
||||||
document.getElementById('root')
|
document.getElementById('root')
|
||||||
);
|
);
|
||||||
|
|
||||||
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