diff --git a/src/helpers/withData.js b/src/helpers/withData.js index 38706de..fe7f943 100644 --- a/src/helpers/withData.js +++ b/src/helpers/withData.js @@ -6,6 +6,8 @@ import debug from 'debug'; import initApollo from './initApollo'; +import data from '../data/SampleData'; + const logger = debug('app:withData'); logger.log = console.log.bind(console); @@ -83,7 +85,7 @@ export default (ComposedComponent) => { // render within `getInitialProps()` above (since the entire prop tree // will be initialized there), meaning the below will only ever be // executed on the client. - this.apollo = initApollo(this.props.serverState.apollo.data, { + this.apollo = initApollo(data, { getToken: () => parseCookies(), // ['connect.sid'], }); }