Skip to content

Commit 4aec312

Browse files
committed
docs(files): say which hung refetches a capped room delivery recovers
1 parent 77050d4 commit 4aec312

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/hooks/use-workspace-invalidation-room.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ const JOIN_RETRY_BASE_MS = 1000
2020
export const INVALIDATION_COALESCE_MS = 1000
2121
/**
2222
* The longest a delivery waits for its refetches. A fetch has no timeout of its own, so one that
23-
* hangs would otherwise hold the room's deliveries forever; past this, the next delivery's
24-
* invalidation cancels and restarts it.
23+
* hangs would otherwise hold the room's deliveries forever. Past this, later deliveries run again:
24+
* their invalidation cancels and restarts a hung refetch of a query that has data, while a hung
25+
* first load is joined, as it always was, until it settles or its last observer unmounts.
2526
*/
2627
export const DELIVERY_SETTLE_CAP_MS = 30_000
2728

0 commit comments

Comments
 (0)