File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import debug from 'debug';
66
77import initApollo from './initApollo' ;
88
9+ import data from '../data/SampleData' ;
10+
911const logger = debug ( 'app:withData' ) ;
1012logger . log = console . log . bind ( console ) ;
1113
@@ -64,6 +66,9 @@ export default (ComposedComponent) => {
6466
6567 await getDataFromTree ( app ) ;
6668
69+ console . log ( "---------------------" )
70+ console . log ( "DEBUG" )
71+ console . log ( "---------------------" )
6772 serverState = {
6873 apollo : { // Make sure to only include Apollo's data state
6974 data : apollo . cache . extract ( ) , // Extract query data from the Apollo's store
@@ -83,7 +88,7 @@ export default (ComposedComponent) => {
8388 // render within `getInitialProps()` above (since the entire prop tree
8489 // will be initialized there), meaning the below will only ever be
8590 // executed on the client.
86- this . apollo = initApollo ( this . props . serverState . apollo . data , {
91+ this . apollo = initApollo ( data , {
8792 getToken : ( ) => parseCookies ( ) , // ['connect.sid'],
8893 } ) ;
8994 }
You can’t perform that action at this time.
0 commit comments