chore: Enable HMR for frontend code (#2024)

* chore: Enable HMR for frontend code
closes #2021

* revert
This commit is contained in:
Tom Moor
2021-04-11 15:09:00 -07:00
committed by GitHub
parent 2a6dfdea5d
commit cdc7f61fa1
7 changed files with 134 additions and 44 deletions

View File

@@ -42,7 +42,7 @@ if ("serviceWorker" in window.navigator) {
}
if (element) {
render(
const App = () => (
<Provider {...stores}>
<Analytics>
<Theme>
@@ -59,9 +59,10 @@ if (element) {
</ErrorBoundary>
</Theme>
</Analytics>
</Provider>,
element
</Provider>
);
render(<App />, element);
}
window.addEventListener("load", async () => {