mirror of
https://github.com/block/buzz.git
synced 2026-11-01 23:11:58 +00:00
docs(desktop): correct stale post-subscribe refetch comment
The enforceMessageWindowBounds doc referenced shouldRefreshChannelWindowAfterSubscribe, a seam #5662 removed when it made the post-subscribe refetch unconditional. Describe the current behavior instead. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
@@ -98,7 +98,7 @@ function foldUnits(queries: ClassifiedQuery[]): Map<string, MessageWindowUnit> {
|
||||
* queries. Channels and threads are bounded independently.
|
||||
*
|
||||
* Removal (not invalidation) is deliberate: a removed key reads back as absent,
|
||||
* so `shouldRefreshChannelWindowAfterSubscribe` re-fetches fresh on revisit.
|
||||
* so a revisit re-fetches fresh via the unconditional post-subscribe refetch.
|
||||
* Deferred background writers (reaction/aux hydration, ancestor loads, mutation
|
||||
* success handlers) fire after their own promise settles with no pin, so each
|
||||
* commits through `updateRetainedMessageUnit`; bumping the evicted unit's
|
||||
|
||||
Reference in New Issue
Block a user