We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87d6f5e commit 0f6d975Copy full SHA for 0f6d975
src/helpers/withData.js
@@ -6,6 +6,8 @@ import debug from 'debug';
6
7
import initApollo from './initApollo';
8
9
+import data from '../data/SampleData';
10
+
11
const logger = debug('app:withData');
12
logger.log = console.log.bind(console);
13
@@ -83,7 +85,7 @@ export default (ComposedComponent) => {
83
85
// render within `getInitialProps()` above (since the entire prop tree
84
86
// will be initialized there), meaning the below will only ever be
87
// executed on the client.
- this.apollo = initApollo(this.props.serverState.apollo.data, {
88
+ this.apollo = initApollo(data, {
89
getToken: () => parseCookies(), // ['connect.sid'],
90
});
91
}
0 commit comments