@laserware/stasis
    Preparing search index...

    Function isPending

    • A higher-order function that returns a function that may be used to check whether an action was created by an async thunk action creator, and that the action is pending.

      Returns (
          action: any,
      ) => action is PayloadAction<
          undefined,
          string,
          { arg: unknown; requestId: string; requestStatus: "pending" },
          never,
      >

    • A higher-order function that returns a function that may be used to check whether an action belongs to one of the provided async thunk action creators, and that the action is pending.

      Type Parameters

      • AsyncThunks extends [AnyAsyncThunk, ...AnyAsyncThunk[]]

      Parameters

      • ...asyncThunks: AsyncThunks

        (optional) The async thunk action creators to match against.

      Returns (action: any) => action is ActionFromMatcher<AsyncThunks[number]["pending"]>

    • Tests if action is a pending thunk action

      Parameters

      • action: any

      Returns action is PayloadAction<
          undefined,
          string,
          { arg: unknown; requestId: string; requestStatus: "pending" },
          never,
      >