A write or a read an asynchronous store refused, as WidgetStorageOptions.onError receives it.

interface WidgetStorageError {
    error: unknown;
    key: string;
    operation: "remove" | "load" | "write";
}

Properties

Properties

error: unknown
key: string

The full key, or the namespace prefix for load.

operation: "remove" | "load" | "write"

load when the namespace could not be read, after which the session keeps its changes in memory only, since writing could overwrite what was never read; write or remove for one key, which is tried again with the next change or flush.