Skip to content

Commit 0f6d975

Browse files
committed
read SampleData.js for testing
delete console.logs for debug
1 parent 87d6f5e commit 0f6d975

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/helpers/withData.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import debug from 'debug';
66

77
import initApollo from './initApollo';
88

9+
import data from '../data/SampleData';
10+
911
const logger = debug('app:withData');
1012
logger.log = console.log.bind(console);
1113

@@ -83,7 +85,7 @@ export default (ComposedComponent) => {
8385
// render within `getInitialProps()` above (since the entire prop tree
8486
// will be initialized there), meaning the below will only ever be
8587
// executed on the client.
86-
this.apollo = initApollo(this.props.serverState.apollo.data, {
88+
this.apollo = initApollo(data, {
8789
getToken: () => parseCookies(), // ['connect.sid'],
8890
});
8991
}

0 commit comments

Comments
 (0)