From 549cfa77c9fec0936c3a8d87a49b69401cbfbd7a Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 24 May 2018 15:24:33 -0400 Subject: toggle cart mutesss --- frontend/lib/withData.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'frontend/lib') diff --git a/frontend/lib/withData.js b/frontend/lib/withData.js index 6fc0213..e47a9db 100644 --- a/frontend/lib/withData.js +++ b/frontend/lib/withData.js @@ -1,14 +1,10 @@ import withApollo from 'next-with-apollo'; import ApolloClient from 'apollo-boost'; -import { LOCAL_STATE_QUERY } from '../queries/queries.graphql'; -// can also be a function that accepts a `headers` object (SSR only) and returns a config +import { LOCAL_STATE_QUERY } from '../components/Cart'; function createClient({ headers }) { return new ApolloClient({ - uri: - process.env.NODE_ENV === 'development' - ? 'http://localhost:4444' - : 'http://localhost:4444', + uri: process.env.NODE_ENV === 'development' ? 'http://localhost:4444' : 'http://localhost:4444', request: operation => { operation.setContext({ fetchOptions: { -- cgit v1.3