Skip to main content

ResultOptions

还没翻译译自英文(tanstack.com)本页 7 段都还没译

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

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.