Practic BUI (Base UI) - v1.0.0
    Preparing search index...

    Type Alias PersistLocation<T>

    Where a value lives: a storage key (the default key when omitted) and an attribute within it. Without an attribute, the value is kept in memory and never read from or written to storage.

    type PersistLocation<T> = {
        attr?: string;
        format?: PersistFormat<T>;
        initialValue: T;
        key?: string;
    }

    Type Parameters

    • T
    Index
    attr?: string
    format?: PersistFormat<T>

    How the value is stored and read back across releases (persistFormat); without one, it is read as stored.

    initialValue: T
    key?: string