We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05b713e commit 5dec15cCopy full SHA for 5dec15c
example/ssr-with-js/web/layout/index.js
@@ -31,7 +31,7 @@ const Layout = (props) => {
31
<div id='app'>{ commonNode(props) }</div>
32
{
33
serverData && <script dangerouslySetInnerHTML={{
34
- __html: `window.__USE_SSR__=true; window.__INITIAL_DATA__ =${serialize(serverData || {})}`
+ __html: `window.__USE_SSR__=true; window.__INITIAL_DATA__ =${serialize(serverData)}`
35
}} />
36
}
37
<div dangerouslySetInnerHTML={{
0 commit comments