diff --git a/packages/react-query/src/types.ts b/packages/react-query/src/types.ts index 8bbb351a85..1609425301 100644 --- a/packages/react-query/src/types.ts +++ b/packages/react-query/src/types.ts @@ -101,7 +101,13 @@ export interface UseInfiniteQueryOptions< TPageParam >, 'suspense' - > {} + > { + /** + * Set this to `false` to unsubscribe this observer from updates to the query cache. + * Defaults to `true`. + */ + subscribed?: boolean +} export type AnyUseSuspenseInfiniteQueryOptions = UseSuspenseInfiniteQueryOptions