Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

RetrySafeOptions

interfaz Since 1.2.0

Opciones del modo retrySafe de useRpcMutation y useApiMutation.

ts
import type { RetrySafeOptions } from "@meekojs/meeko/framework";

Source code src/app/runtime/mutations.ts:37

Declaración #

ts
interface RetrySafeOptions {
	readonly key: string
	readonly storage?: StorageArea
}

Example #

ts
import type { RetrySafeOptions } from "@meekojs/meeko/framework";

const retrySafe: RetrySafeOptions = { key: "pos:sale" };
const charge = useRpcMutation("sales.checkout", { retrySafe });

Propiedades #

key #

propiedad sólo lectura

readonly key: string

Clave del almacenamiento donde se guarda la intención mientras su resultado es incierto, como "pos:sale". Use una clave por mutación: dos componentes con la misma clave comparten la intención. Inclúyale lo que la distinga entre usuarios o cuentas si comparten navegador.

storage #

propiedad sólo lectura opcional

readonly storage?: StorageArea

"local" (por defecto) sobrevive a una recarga y a cerrar el navegador; "session", sólo a una recarga.

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/app/runtime/mutations.ts