If you have any project questions, concerns, or contribution ideas, join our #pwa Slack channel. Find out how to create an account by visiting Community Resources

useApolloContext

useApolloContext() ⇒ ApolloClient

A function that provides access to the Apollo client API.

Beyond the client, ApolloContext includes additional private values. This hook only provides the client, as downstream consumers should only need the client in order to perform queries.

If a consumer needs those private context values, it should consume ApolloContext directly, instead of using this hook.

Kind: global function
Returns: ApolloClient - The Apollo client for this application

For implementation details View Source.