Skip to content

Commit 5a171c1

Browse files
docs: remove extra word
1 parent b59da78 commit 5a171c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/essentials/part-8-rtk-query-advanced.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ RTK Query has many other options for controlling when and how to refetch data, i
249249

250250
### Updating Toast Display
251251

252-
When we switched from dispatching thunks for adding posts to using an RTK Query mutation, we accidentally broke the "New post added" toast message behavior, because the the `addNewPost.fulfilled` action is no longer getting dispatched.
252+
When we switched from dispatching thunks for adding posts to using an RTK Query mutation, we accidentally broke the "New post added" toast message behavior, because the `addNewPost.fulfilled` action is no longer getting dispatched.
253253

254254
Fortunately, this is simple to fix. RTK Query actually uses `createAsyncThunk` internally, and we've already seen that it dispatches Redux actions as the requests are made. We can update the toast listener to watch for RTKQ's internal actions being dispatched, and show the toast message when that happens.
255255

0 commit comments

Comments
 (0)