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

    Type Alias PersistKeyStore

    Every value one storage key holds, as a layer keeps it: read, written and watched alike by components and by plain functions outside React.

    type PersistKeyStore = {
        getValues: () => PersistStorableValues;
        ready: () => Promise<void>;
        setValue: (attr: string, value: PersistStorable) => void;
        subscribe: (listener: () => void) => () => void;
    }
    Index
    getValues: () => PersistStorableValues

    Every value under the key; the same object until one changes, so components can compare snapshots.

    ready: () => Promise<void>

    Resolves once stored values have loaded: at once for synchronous storage such as localStorage.

    setValue: (attr: string, value: PersistStorable) => void

    Stores one value, proved storable, and notifies the subscribers.

    subscribe: (listener: () => void) => () => void

    Calls the listener after every change; returns the function that stops it.