Skip to content

Commit

Permalink
Merge pull request #776 from CaptainFact/47-add-hot-module-replacement
Browse files Browse the repository at this point in the history
Fixed HMR
  • Loading branch information
Betree authored Mar 17, 2021
2 parents 6519465 + 2157395 commit 8d55536
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ import UserProvider from './components/LoggedInUser/UserProvider'
// Activate polyfills
smoothSrollPolyfill()

// When a change is detected we tell webpack to accept the updated module
if (module.hot) {
module.hot.accept()
}

// Inject React app in DOM
ReactDOM.render(
<ThemeProvider theme={theme}>
Expand Down

0 comments on commit 8d55536

Please sign in to comment.