Lilact
    Preparing search index...

    Function useActionState

    • React-compatible hook for managing an async/queued action and deriving state from it.

      Parameters

      • action: Function

        The async/queued action function.

      • initialState: any

        Initial state for the hook.

      Returns any

      Hook result