We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I make client using ApolloClient class, there was no error, but it causes error after updating packages.
client
ApolloClient
apollo-boost
@apollo/client
ApolloProvider
import { ApolloProvider } from '@apollo/client'; import ApolloClient, { InMemoryCache } from 'apollo-boost'; const client = new ApolloClient<InMemoryCache>({ uri: ..., cache: ..., request: (operation): void => {...}, }); const App = (): React.ReactElement => { return ( // error is occurred at here <ApolloProvider client={client}> ... </ApolloProvider> ); }
Intended outcome:
NO ERROR
Actual outcome:
Type compatibility error!!
Property 'setLink' is missing in type 'DefaultClient<InMemoryCache>' but required in type 'ApolloClient<any>'.
How to reproduce the issue:
I think, it could be solved with above example code
Versions
The text was updated successfully, but these errors were encountered:
@baeharam The apollo-boost package was removed in AC3, and is not intended to be used with @apollo/client.
Sorry, something went wrong.
@benjamn Then how can I move request property to new ApolloClient from @apollo/client? This property isn't exist in ApolloClient of @apollo/client
request
I used header property of new ApolloClient from @apollo/client.
header
No branches or pull requests
When I make
client
usingApolloClient
class, there was no error, but it causes error after updating packages.ApolloClient
fromapollo-boost
(I have to use this, not from@apollo/client
)ApolloProvider
from@apollo/client
Intended outcome:
NO ERROR
Actual outcome:
Type compatibility error!!
How to reproduce the issue:
I think, it could be solved with above example code
Versions
@apollo/client
: ^3.2.5apollo-boost
: ^0.4.9The text was updated successfully, but these errors were encountered: