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>
if (module.hot) { if (module.hot) {
module.hot.accept("./components/App", () => { 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> ReactDOM.render(<AppContainer>
<App device={device} uiStore={uiStore}/> <NextApp device={device} uiStore={uiStore}/>
</AppContainer>, rootElem); </AppContainer>, rootElem);
}); });
} }

Loading…
Cancel
Save