Type of created actions.
Optional
commonMeta: MetaMetadata added to created actions.
Optional
isError: booleanDefines whether created actions are error actions.
Creates Action Creator that produces actions with given type
and payload
of type Payload
.
Creates three Action Creators:
started: ActionCreator<Params>
done: ActionCreator<{params: Params, result: Result}>
failed: ActionCreator<{params: Params, error: Error}>
Useful to wrap asynchronous processes.
Prefix for types of created actions, which will have types
${type}_STARTED
, ${type}_DONE
and ${type}_FAILED
.
Optional
commonMeta: MetaMetadata added to created actions.
Creates Action Creator that produces actions with given
type
and payload of typePayload
.