summaryrefslogtreecommitdiffstats
path: root/frontend/lib/withData.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-04-02 16:49:41 -0400
committerWes Bos <wesbos@gmail.com>2018-04-02 16:49:41 -0400
commitcab6919072fd8145da7c703134c88cfd48ddd27b (patch)
tree397d9c65904a62c7986f89b4a5970623dbe132f7 /frontend/lib/withData.js
parent1e8c7c0fdcdc2c10274723bfbed17256b4e3b7f7 (diff)
temporary fix for broken apollo cache policy
Diffstat (limited to 'frontend/lib/withData.js')
-rw-r--r--frontend/lib/withData.js5
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: {