Skip to content

Commit

Permalink
Merge pull request #2312 from nichita-pasecinic/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed May 9, 2022
2 parents 7b8cbc8 + 36e27ef commit 2c6fab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rtk-query/usage/streaming-updates.mdx
Expand Up @@ -24,7 +24,7 @@ Primarily updates to query data should be done via [`polling`](./polling) interm

However, streaming updates is particularly useful for scenarios involving:

- _Small, frequent changes to large objects_. Rather than repeatedly polling for a large object repeatedly, the object can be fetched with an initial query, and streaming updates can update individual properties as updates are received.
- _Small, frequent changes to large objects_. Rather than repeatedly polling for a large object, the object can be fetched with an initial query, and streaming updates can update individual properties as updates are received.
- _External event-driven updates_. Where data may be changed by the server or otherwise external users and where real-time updates are expected to be shown to an active user, polling alone would result in periods of stale data in between queries, causing state to easily get out of sync. Streaming updates can update all active clients as the updates occur rather than waiting for the next interval to elapse.

Example use cases that benefit from streaming updates are:
Expand Down

0 comments on commit 2c6fab0

Please sign in to comment.