Commit f0eacf66 authored by Max Scher's avatar Max Scher Committed by Tim Neutkens

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
parent 20af8cda
...@@ -18,7 +18,11 @@ export default ComposedComponent => { ...@@ -18,7 +18,11 @@ export default ComposedComponent => {
static async getInitialProps (ctx) { static async getInitialProps (ctx) {
// Initial serverState with apollo (empty) // Initial serverState with apollo (empty)
let serverState = { apollo: { } } let serverState = {
apollo: {
data: { }
}
}
// Evaluate the composed component's getInitialProps() // Evaluate the composed component's getInitialProps()
let composedInitialProps = {} let composedInitialProps = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment