Skip to content

Commit a92a953

Browse files
authored
Merge pull request #4734 from abdullahhussein1/patch-1
docs: remove extra word
2 parents b59da78 + 5a171c1 commit a92a953

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

+1-1
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)