diff options
Diffstat (limited to 'frontend/lib')
| -rw-r--r-- | frontend/lib/withData.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/frontend/lib/withData.js b/frontend/lib/withData.js index 5a32fe3..1a152a3 100644 --- a/frontend/lib/withData.js +++ b/frontend/lib/withData.js @@ -7,11 +7,10 @@ export default withApollo({ client: new ApolloClient({ uri: 'http://localhost:4444', // cache: new InMemoryCache().restore(initialState || {}), - // ssrMode: !process.browser, // Disables forceFetch on the server (so queries are only run once) + ssrMode: !process.browser, // Disables forceFetch on the server (so queries are only run once) request: operation => { - console.log('hey'); + console.log(operation); if (typeof localStorage !== 'undefined' && localStorage.getItem('token')) { - console.log('heyyy'); console.log(`Bearer ${localStorage.getItem('token')}`); operation.setContext({ headers: { |
