Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias WriteStatus

    what a page may see of one queued value: no local value, and the server's side of a conflict

    type WriteStatus = {
        attempts: number;
        base: string;
        bytes: number;
        conflict?: WriteConflict;
        key: string;
        name: string;
        queuedAt: number;
        refusal?: WriteRefusalCode;
        state: WriteState;
        updatedAt: number;
    }
    Index
    attempts: number

    flushes that failed before the network answered

    base: string

    the version the first edit since the last flush started from

    bytes: number

    bytes of the queued value's JSON

    conflict?: WriteConflict
    key: string
    name: string
    queuedAt: number

    the code of a refusal that stopped a flush for good; the record waits for resolve

    state: WriteState
    updatedAt: number