From d3838ccb799cd8c286efcea90d776e8b6936d484 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 11 May 2018 12:31:49 -0400 Subject: move apollo to _app --- frontend/components/Page.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'frontend/components/Page.js') diff --git a/frontend/components/Page.js b/frontend/components/Page.js index c6601f6..179c0ab 100644 --- a/frontend/components/Page.js +++ b/frontend/components/Page.js @@ -55,6 +55,8 @@ class Page extends React.Component { }; componentDidMount() { // The first time we load in the client, we need to refetch the current user data + // TODO use ApolloContext API here instead + // TODO can we just use _app for this? if (typeof window !== 'undefined' && !window.__CLIENTLOADED__) { client.query({ query: CURRENT_USER_QUERY, fetchPolicy: 'network-only' }); window.__CLIENTLOADED__ = true; -- cgit v1.3