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

    Function persistFormat

    • Declares how a persisted value is stored: its version, and how a stored value of any version up to it is read, upgraded when it is older. Pass it as a persisted value's format: the value is then stored with its version, read through read, and shown as its initial value when it cannot be read or a newer release wrote it (said once in the console), so a page never shows data it misreads. A value stored before it had a format reads as version 0.

      Type Parameters

      • T

      Parameters

      • definition: Pick<PersistFormat<T>, "version" | "read">

        The version this release writes, and how a stored value of each version is read.

      Returns PersistFormat<T>