Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 856 Bytes

CancelOptions.md

File metadata and controls

18 lines (13 loc) · 856 Bytes
id CancelOptions
title CancelOptions

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

Options for cancelling an in-flight fetch, e.g. via query.cancel(). They are carried on the CancelledError that the cancelled fetch rejects with.

Properties

Property Type Description
revert? boolean If true, the query goes back to the state it had before the fetch started, instead of getting the cancellation error.
silent? boolean If true, the cancellation error isn't surfaced, e.g. because another fetch replaces the cancelled one.