Skip to content

Commit

Permalink
Merge pull request #4174 from 721-atikshaikh/docs/queries
Browse files Browse the repository at this point in the history
Reframed the "Observing cache behaviour" example point no.4
  • Loading branch information
EskiMojo14 committed Feb 9, 2024
2 parents 9d390b9 + 680c398 commit fd24f6f
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' of a particular pokemon type, it'll update all of them 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 fd24f6f

Please sign in to comment.