UNPKG

@apollo/client-integration-nextjs

Version:

<div align="center"> <img src="https://raw.githubusercontent.com/apollographql/apollo-client-integrations/main/banner.jpg" width="500" alt="Apollo Client + Next.js App Router" /> </div>

50 lines (47 loc) 1.59 kB
import { ApolloClient as ApolloClient$1, InMemoryCache as InMemoryCache$1 } from '@apollo/client-react-streaming'; export { DebounceMultipartResponsesLink, PreloadQueryComponent, PreloadQueryProps, RemoveMultipartDirectivesLink, SSRMultipartLink, TransportedQueryRef, registerApolloClient } from '@apollo/client-react-streaming'; /** @public */ declare namespace ApolloClient { /** @public */ interface Options extends ApolloClient$1.Options { } } /** * A version of `ApolloClient` to be used with streaming SSR or in React Server Components. * * For more documentation, please see {@link https://www.apollographql.com/docs/react/api/core/ApolloClient | the Apollo Client API documentation}. * * @public */ declare class ApolloClient extends ApolloClient$1 { /** * Information about the current package and it's export names, for use in error messages. * * @internal */ static readonly info: { pkg: string; client: string; cache: string; }; } /** * A version of `InMemoryCache` to be used with streaming SSR. * * For more documentation, please see {@link https://www.apollographql.com/docs/react/api/cache/InMemoryCache | the Apollo Client API documentation}. * * @public */ declare class InMemoryCache extends InMemoryCache$1 { /** * Information about the current package and it's export names, for use in error messages. * * @internal */ static readonly info: { pkg: string; client: string; cache: string; }; } export { ApolloClient, InMemoryCache };