Skip to content

Commit 0d8fae6

Browse files
authored
Merge pull request #4867 from Shahzadrahim-dev/patch-2
docs: fix fetchPosts typo in async logic tutorial
2 parents 1afbd4a + 40560a2 commit 0d8fae6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/tutorials/essentials/part-5-async-logic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ console.log(
477477

478478
We've also seen that we can use [the `extraReducers` field in `createSlice` to respond to actions that were defined outside of the slice](./part-4-using-data.md##using-extrareducers-to-handle-other-actions).
479479

480-
In this case, we need to listen for the "pending" and "fulfilled" action types dispatched by our `fetchPosts` thunk. Those action creators are attached to our actual `fetchPost` function, and we can pass those to `extraReducers` to listen for those actions:
480+
In this case, we need to listen for the "pending" and "fulfilled" action types dispatched by our `fetchPosts` thunk. Those action creators are attached to our actual `fetchPosts` function, and we can pass those to `extraReducers` to listen for those actions:
481481

482482
```ts title="features/posts/postsSlice.ts"
483483
export const fetchPosts = createAsyncThunk('posts/fetchPosts', async () => {

0 commit comments

Comments
 (0)