From 1d7a7fa091f187f048c6e1df8eef59be9e27487f Mon Sep 17 00:00:00 2001 From: Jenn Creighton Date: Mon, 22 Mar 2021 13:23:00 -0400 Subject: [PATCH] Update useSubscription options documentation --- docs/shared/subscription-options.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/shared/subscription-options.mdx b/docs/shared/subscription-options.mdx index 9b7f6b441f0..b15ca365592 100644 --- a/docs/shared/subscription-options.mdx +++ b/docs/shared/subscription-options.mdx @@ -5,4 +5,5 @@ | `shouldResubscribe` | boolean | Determines if your subscription should be unsubscribed and subscribed again | | `onSubscriptionData` | (options: OnSubscriptionDataOptions<TData>) => any | Allows the registration of a callback function, that will be triggered each time the `useSubscription` Hook / `Subscription` component receives data. The callback `options` object param consists of the current Apollo Client instance in `client`, and the received subscription data in `subscriptionData`. | | `fetchPolicy` | FetchPolicy | How you want your component to interact with the Apollo cache. For details, see [Setting a fetch policy](https://www.apollographql.com/docs/react/data/queries/#setting-a-fetch-policy). | +| `context` | Record<string, any> | Shared context between your component and your network interface (Apollo Link). | | `client` | ApolloClient | An `ApolloClient` instance. By default `useSubscription` / `Subscription` uses the client passed down via context, but a different client can be passed in. |