There was an error while loading. Please reload this page.
1 parent e72533d commit bf6f264Copy full SHA for bf6f264
packages/gatsby/cache-dir/app.js
@@ -119,9 +119,11 @@ apiRunnerAsync(`onClientEntry`).then(() => {
119
const renderer = apiRunner(
120
`replaceHydrateFunction`,
121
undefined,
122
- // TODO replace with hydrate once dev SSR is ready
123
- // but only for SSRed pages.
124
- ReactDOM.render
+ // Client only pages have any empty body so we just do a normal
+ // render to avoid React complaining about hydration mis-matches.
+ document.getElementById(`___gatsby`).children.length === 0
125
+ ? ReactDOM.render
126
+ : ReactDOM.hydrate
127
)[0]
128
129
let dismissLoadingIndicator
0 commit comments