reactorUpdateRetry
reactorUpdateRetry(
failureCount,error):boolean
Defined in: core/src/errors/index.ts:645
A TanStack Query retry for update calls: up to 3 retries of a failure that
isRetryableUpdateError accepts, none of anything else, and none on
the server, like reactorRetry.
On the QueryClient defineReactor creates, it is how a query of an update
method retries when the query sets no retry (see Reactor.getQueryRetry).
Mutations retry nothing by default. Give one this to retry an update only
when that cannot run it twice.
Parameters
Section titled “Parameters”failureCount
Section titled “failureCount”number
unknown
Returns
Section titled “Returns”boolean
Example
Section titled “Example”createMutation(ledger, { functionName: "icrc1_transfer", retry: reactorUpdateRetry,})