Skip to content

Commit 4417317

Browse files
committed
Formatting
1 parent 507f41c commit 4417317

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

docs/usage/usage-guide.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ There are many kinds of async middleware for Redux, and each lets you write your
560560

561561
Redux Toolkit does not currently provide any special APIs or syntax for writing thunk functions. In particular, **they cannot be defined as part of a `createSlice()` call**. You have to write them separate from the reducer logic, exactly the same as with plain Redux code.
562562

563-
564563
Thunks typically dispatch plain actions, such as `dispatch(dataLoaded(response.data))`.
565564

566565
Many Redux apps have structured their code using a "folder-by-type" approach. In that structure, thunk action creators are usually defined in an "actions" file, alongside the plain action creators.

0 commit comments

Comments
 (0)