1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Add data node to serverState declaration (#3321)

The serverState variable definition did not include the data node, which
may cause parsing errors on the client-side.
  - add data: { } on line 23 within the apollo: { } object
This commit is contained in:
Max Scher 2017-11-23 04:46:33 -08:00 committed by Tim Neutkens
parent 20af8cdabe
commit f0eacf66ea

View file

@ -18,7 +18,11 @@ export default ComposedComponent => {
static async getInitialProps (ctx) {
// Initial serverState with apollo (empty)
let serverState = { apollo: { } }
let serverState = {
apollo: {
data: { }
}
}
// Evaluate the composed component's getInitialProps()
let composedInitialProps = {}