UNPKG

@apollo/client

Version:

A fully-featured caching GraphQL client.

18 lines 578 B
import type { ApolloClient } from "@apollo/client"; /** * @example * * ```jsx * import { useApolloClient } from "@apollo/client"; * * function SomeComponent() { * const client = useApolloClient(); * // `client` is now set to the `ApolloClient` instance being used by the * // application (that was configured using something like `ApolloProvider`) * } * ``` * * @returns The `ApolloClient` instance being used by the application. */ export declare function useApolloClient(override?: ApolloClient): ApolloClient; //# sourceMappingURL=useApolloClient.d.ts.map