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

    Variable persistWriteValueConst

    persistWriteValue: <T>(
        store: PersistKeyStore,
        attr: string | undefined,
        initialValue: T,
        action: PersistSetAction<T>,
        format?: PersistFormat<T>,
    ) => void

    Stores one value, resolved like React's useState setter, after proving that a layer can store it.

    Type Declaration

      • <T>(
            store: PersistKeyStore,
            attr: string | undefined,
            initialValue: T,
            action: PersistSetAction<T>,
            format?: PersistFormat<T>,
        ): void
      • Type Parameters

        • T

        Parameters

        • store: PersistKeyStore

          Store of the value's key.

        • attr: string | undefined

          Attribute of the value; without one, the attribute a memory store keeps it under.

        • initialValue: T

          Value an updater receives until one is stored.

        • action: PersistSetAction<T>

          Replacement value or updater function.

        • Optionalformat: PersistFormat<T>

          How the value is stored, when it has a format: stored with its version.

        Returns void