We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69730b1 commit bceca0aCopy full SHA for bceca0a
src/index.tsx
@@ -6,16 +6,14 @@ import { loadLocalStorageFromDevIfNeeded } from ".deploy";
6
import "normalize.css";
7
import "antd/dist/antd.css";
8
9
-function renderApp() {
+loadLocalStorageFromDevIfNeeded().then(() => {
10
ReactDOM.render(
11
<React.StrictMode>
12
<App />
13
</React.StrictMode>,
14
document.getElementById("root"),
15
);
16
-}
17
-
18
-loadLocalStorageFromDevIfNeeded().then(renderApp);
+});
19
20
// If you want your app to work offline and load faster, you can change
21
// unregister() to register() below. Note this comes with some pitfalls.
0 commit comments