I'm beginning our migration from Apollo Client 2.x to 3.x beta, and I'm having trouble using both the apollo hooks and the now deprecated query/mutation components.
I'm using the packages:
@apollo/client: 3.0.0-beta.4
@apollo/react-components: 3.1.3
Using the apollo hooks works fine in this case, but using the query component, I get the following error:
Invariant Violation Could not find "client" in the context or passed in as an option. Wrap the root component in an , or pass an ApolloClient instance in via options.
I've created a codesandbox that shows this issue here: https://codesandbox.io/s/react-example-9p9ym
I think the issue is with the source of the ApolloProvider
I'm using, but not sure which package to get that from if I want to use the new beta, while still using the query components.