Skip to content

Commit

Permalink
fix(react-query): add missing subscribed option to UseInfiniteQueryOp…
Browse files Browse the repository at this point in the history
…tions (#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>
  • Loading branch information
SMhdAsadi and autofix-ci[bot] authored Jan 19, 2025
1 parent f04dd19 commit 3e3fba9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/react-query/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any, any, any, any, any, any>
Expand Down

0 comments on commit 3e3fba9

Please sign in to comment.