Skip to content

Commit

Permalink
Added more information
Browse files Browse the repository at this point in the history
  • Loading branch information
721-atikshaikh committed Feb 9, 2024
1 parent 45a742f commit 680c398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rtk-query/usage/queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ This example demonstrates request deduplication and caching behavior:
2. A second later, another `Pokemon` component is rendered with 'bulbasaur'
- Notice that this one doesn't ever show 'Loading...' and no new network request happens? It's using the cache here.
3. A moment after that, a `Pokemon` component for 'pikachu' is added, and a new request happens.
4. When you click 'Refetch' for a specific `Pokemon`, it'll update only that pokemon with one request.
4. When you click 'Refetch' for a specific `Pokemon`, it'll update all instances of that `Pokemon` with one request.

:::note Try it out
Click the 'Add bulbasaur' button. You'll observe the same behavior described above until you click the 'Refetch' button on one of the components.
Expand Down

0 comments on commit 680c398

Please sign in to comment.