mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fixed: Client required a Cache to be setup
This commit is contained in:
@@ -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(() => ({
|
||||
|
||||
Reference in New Issue
Block a user