TanStack
API Reference

ResultOptions

Defined in: packages/query-core/src/types.ts:863

Options shared by the QueryClient and observer methods that refetch queries, controlling whether a failed refetch makes the returned promise reject.

Extended by

Properties

PropertyTypeDefault valueDescription
throwOnError?booleanfalseIf set to true, the method throws if any of the underlying query refetch tasks fail. If set to false, failed refetches are swallowed and not surfaced to the caller.