Practic Persist - v1.0.0
    Preparing search index...

    Function persistWriteValue

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

      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