♻️ upd lib/apollo.js

This commit is contained in:
Sergey Yarkov 2020-03-01 19:25:46 +03:00
parent 1789febbeb
commit db35cd8479

View File

@ -1,24 +1,3 @@
// import withApollo from 'next-with-apollo';
// import ApolloClient, { InMemoryCache } from 'apollo-boost';
// import { ApolloProvider } from '@apollo/react-hooks';
// export default withApollo(
// ({ initialState }) => {
// return new ApolloClient({
// uri: 'http://localhost:3005/graphql',
// cache: new InMemoryCache().restore(initialState || {})
// });
// },
// {
// render: ({ Page, props }) => {
// return (
// <ApolloProvider client={props.apollo}>
// <Page {...props} />
// </ApolloProvider>
// );
// }
// }
// );
import React, { useMemo } from 'react'
import Head from 'next/head'
import { ApolloProvider } from '@apollo/react-hooks'