Skip to content

Commit

Permalink
Docs: fix createAsyncThunk args typo (reduxjs#918)
Browse files Browse the repository at this point in the history
Correct `action.meta` value from `args` to `arg`.
  • Loading branch information
mgmarlow authored Mar 9, 2021
1 parent 87bc203 commit cae30c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/createAsyncThunk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ When dispatched, the thunk will:

## Promise Lifecycle Actions

`createAsyncThunk` will generate three Redux action creators using [`createAction`](./createAction.mdx): `pending`, `fulfilled`, and `rejected`. Each lifecycle action creator will be attached to the returned thunk action creator so that your reducer logic can reference the action types and respond to the actions when dispatched. Each action object will contain the current unique `requestId` and `args` values under `action.meta`.
`createAsyncThunk` will generate three Redux action creators using [`createAction`](./createAction.mdx): `pending`, `fulfilled`, and `rejected`. Each lifecycle action creator will be attached to the returned thunk action creator so that your reducer logic can reference the action types and respond to the actions when dispatched. Each action object will contain the current unique `requestId` and `arg` values under `action.meta`.

The action creators will have these signatures:

Expand Down

0 comments on commit cae30c7

Please sign in to comment.