Class AsyncThunkActionCreator<TPayload, TThunkArg>
The async thunk action creator.
Inherited Members
Namespace: Unity.AppUI.Redux
Assembly: Unity.AppUI.Redux.dll
Syntax
public class AsyncThunkActionCreator<TPayload, TThunkArg>
Type Parameters
Name | Description |
---|---|
TPayload | The type of the payload. |
TThunkArg | The type of the thunk argument. |
Properties
fulfilled
The action creator for the fulfilled action.
Declaration
public FulfilledActionCreator<TPayload> fulfilled { get; }
Property Value
Type | Description |
---|---|
FulfilledActionCreator<TPayload> |
pending
The action creator for the pending action.
Declaration
public PendingActionCreator<TPayload> pending { get; }
Property Value
Type | Description |
---|---|
PendingActionCreator<TPayload> |
rejected
The action creator for the rejected action.
Declaration
public RejectedActionCreator<TPayload> rejected { get; }
Property Value
Type | Description |
---|---|
RejectedActionCreator<TPayload> |
type
The type of the action.
Declaration
public string type { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Invoke(TThunkArg)
Create the action to dispatch.
Declaration
public AsyncThunkAction<TPayload, TThunkArg> Invoke(TThunkArg arg)
Parameters
Type | Name | Description |
---|---|---|
TThunkArg | arg | The argument to pass to the thunk. |
Returns
Type | Description |
---|---|
AsyncThunkAction<TPayload, TThunkArg> | The action to dispatch. |