You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now when we reload the page and look at the `<PostsList>`, we should only see one set of posts, with no duplicates, and we should only see one set of dispatched actions in the Redux DevTools.
629
629
630
+
**You don't _need_ to add `condition` to all thunks**, but there may be times it's useful to ensure only one request gets made at a time.
631
+
630
632
:::tip
631
633
632
-
Note that RTK Query will manage this for you! It deduplicates requests across _all_ components, so that each request only happens once, and you don't have to worry about doing this yourself.
634
+
Note that [RTK Query will manage this for you!](./part-7-rtk-query-basics.md) It deduplicates requests across _all_ components, so that each request only happens once, and you don't have to worry about doing this yourself.
633
635
634
636
:::
635
637
@@ -883,8 +885,6 @@ Remember, **the `create` callback syntax is optional!** The only time you _have_
883
885
884
886
We're now fetching and displaying our list of posts. But, if we look at the posts, there's a problem: they all now say "Unknown author" as the authors:
885
887
886
-
**[TODO] Update screenshot here**
887
-
888
888

889
889
890
890
This is because the post entries are being randomly generated by the fake API server, which also randomly generates a set of fake users every time we reload the page. We need to update our users slice to fetch those users when the application starts.
@@ -1108,8 +1108,8 @@ Here's what our app looks like now that we're fetching data from that fake API:
0 commit comments