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 a96cea5 commit c76173cCopy full SHA for c76173c
src/entry-client.js
@@ -3,7 +3,9 @@ import { app, store, router } from './app'
3
4
// prime the store with server-initialized state.
5
// the state is determined during SSR and inlined in the page markup.
6
-store.replaceState(window.__INITIAL_STATE__)
+if (window.__INITIAL_STATE__) {
7
+ store.replaceState(window.__INITIAL_STATE__)
8
+}
9
10
// wait until router has resolved all async before hooks
11
// and async components...
0 commit comments