Fixed: Client required a Cache to be setup

This commit is contained in:
Till
2020-08-22 12:12:32 +02:00
parent 2e8cf135c6
commit b190c5edbc

View File

@@ -1,10 +1,11 @@
import React from 'react';
import { ApolloProvider, ApolloClient } from '@apollo/client';
import { ApolloProvider, ApolloClient, InMemoryCache } from '@apollo/client';
import { Hello } from './Hello.jsx';
import { Info } from './Info.jsx';
const client = new ApolloClient({
uri: '/graphql',
cache: new InMemoryCache(),
/* Uncomment this for accounts use
request: operation =>
operation.setContext(() => ({