# reactorUpdateRetry

> **reactorUpdateRetry**(`failureCount`, `error`): `boolean`

Defined in: [core/src/errors/index.ts:645](https://github.com/B3Pay/ic-reactor/blob/f1956947ae037304fce1675a38695964c1aa9e32/packages/core/src/errors/index.ts#L645)

A TanStack Query `retry` for update calls: up to 3 retries of a failure that
[isRetryableUpdateError](https://ic-reactor.b3pay.net/v3/libs/functions/isretryableupdateerror/) accepts, none of anything else, and none on
the server, like [reactorRetry](https://ic-reactor.b3pay.net/v3/libs/functions/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

### failureCount

`number`

### error

`unknown`

## Returns

`boolean`

## Example

```ts
createMutation(ledger, {
  functionName: "icrc1_transfer",
  retry: reactorUpdateRetry,
})
```