From 0f6d975d80626d0600a86885733a65a8a5019288 Mon Sep 17 00:00:00 2001 From: ksakiyama Date: Sun, 9 Sep 2018 09:55:14 +0900 Subject: [PATCH] read SampleData.js for testing delete console.logs for debug --- src/helpers/withData.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'], }); }