From 3e3fba997bfd356f9a0e0aaa8fed453fcdf2f6f4 Mon Sep 17 00:00:00 2001 From: Seyed Mohammad Asadi <63557556+SMhdAsadi@users.noreply.github.com> Date: Sun, 19 Jan 2025 12:05:18 +0330 Subject: [PATCH] fix(react-query): add missing subscribed option to UseInfiniteQueryOptions (#8546) * fix(react-query): add missing subscribed option to UseInfiniteQueryOptions * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- packages/react-query/src/types.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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