Browse Source

Fixed hot reload

update-deps
Alex Mikhalev 8 years ago
parent
commit
9cb733fb3d
  1. 4
      app/script/index.tsx

4
app/script/index.tsx

@ -20,9 +20,9 @@ ReactDOM.render(<AppContainer> @@ -20,9 +20,9 @@ ReactDOM.render(<AppContainer>
if (module.hot) {
module.hot.accept("./components/App", () => {
const NextApp = require<any>("./components/App").default;
const NextApp = require<any>("./components/App").default as typeof App;
ReactDOM.render(<AppContainer>
<App device={device} uiStore={uiStore}/>
<NextApp device={device} uiStore={uiStore}/>
</AppContainer>, rootElem);
});
}

Loading…
Cancel
Save