@laserware/stasis
    Preparing search index...

    Function createAsyncAction

    • Returns an object with an action creator representing the stages of an async action:

      1. Initializing/requesting that the async action be performed
      2. Success if the async action succeeded
      3. Failure if the async action failed

      You only need to provide the base type name (i.e. app/somethingAsync) and the following action types will be created:

      • app/somethingAsyncRequest
      • app/somethingAsyncSuccess
      • app/somethingAsyncFailure

      Type Parameters

      • RP

        Type of the request action payload.

      • SP

        Type of the success action payload.

      • FP

        Type of the failure action payload.

      • Type extends string = string

        Value of the type field in the action.

      Parameters

      • type: Type

        Value to use for the type field of the action.

      Returns AsyncActionCreator<RP, SP, FP, Type>

      Object with a .request, .success, and .failure action creator.