mirror of
https://github.com/sergeyyarkov/next-apollo-graphql-setup.git
synced 2026-10-11 10:19:43 +03:00
♻️ upd lib/apollo.js
This commit is contained in:
parent
1789febbeb
commit
db35cd8479
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user