Sanity Library Reference Docs
    Preparing search index...

    Interface TransactionSubmissionFailedEventBeta

    Event emitted when submitting a transaction fails with an error the store retries: a network failure, a 5xx, 408 or 429 response, a 401 (for example an expired session), or a 409 transactionConflictError (contention while committing). The transaction and its local changes are kept and submitted again, so the document stays out of sync until an attempt succeeds. Emitted once per failed attempt; attempt starts at 1.

    interface TransactionSubmissionFailedEvent {
        attempt: number;
        error: unknown;
        message: string;
        outgoing: OutgoingTransaction;
        type: "submission-failed";
    }
    Index

    Properties

    attempt: number
    error: unknown
    message: string
    outgoing: OutgoingTransaction
    type: "submission-failed"