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

    Type Alias PersistSetAction<T>

    PersistSetAction: T | ((current: T) => T)

    What a persisted value's setter takes: the next value, or an updater given the current one. It is the shape of React's SetStateAction, written out because this contract imports nothing; @practic/persist's hooks hand React's actions to it, so a React release that changed the shape would fail their type check.

    Type Parameters

    • T