repletes - v1.1.0
    Preparing search index...

    Type Alias Action<T>

    Action: (previous: Entry<T> | undefined) => T | Promise<T>

    The work behind a key. previous is whatever the store still holds, in any state, so an action can revalidate against it. It is undefined when the store held nothing.

    Type Parameters

    • T

    Type Declaration

      • (previous: Entry<T> | undefined): T | Promise<T>
      • Parameters

        • previous: Entry<T> | undefined

        Returns T | Promise<T>