From b162c52b4eafcede69e7b8388e03c571b1ce8293 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 3 May 2024 14:35:02 +0200 Subject: [PATCH] adjust generic name and comment --- .../src/registerApolloClient.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/client-react-streaming/src/registerApolloClient.tsx b/packages/client-react-streaming/src/registerApolloClient.tsx index d171cad7..4bf69c76 100644 --- a/packages/client-react-streaming/src/registerApolloClient.tsx +++ b/packages/client-react-streaming/src/registerApolloClient.tsx @@ -35,12 +35,12 @@ const seenClients = WeakSet * @public */ export function registerApolloClient< - AC extends Promise> | ApolloClient, + ApolloClientOrPromise extends Promise> | ApolloClient, >( - makeClient: () => AC + makeClient: () => ApolloClientOrPromise ): { - getClient: () => AC; - query: Awaited["query"]; + getClient: () => ApolloClientOrPromise; + query: Awaited["query"]; /** * Preloads data in React Server Components to be hydrated * in Client Components. @@ -49,9 +49,9 @@ export function registerApolloClient< * `ClientChild` would call `useReadQuery` with the `queryRef`, the `Suspense` boundary is optional: * ```js * * {(queryRef) => ( @@ -66,9 +66,9 @@ export function registerApolloClient< * `ClientChild` would call the same query with `useSuspenseQuery`, the `Suspense` boundary is optional: * ```js * * loading}>