From 69703450766753597e35672e7fb539be205a16e0 Mon Sep 17 00:00:00 2001 From: Jack Singer Date: Mon, 27 Jul 2026 14:53:38 -0500 Subject: [PATCH 1/2] Revert "Realtime: hold the reload while this client's own writes are in flight" This reverts commit 5b8a5b90afed8cfe05e4db7f899f8b5e4b13b617. --- src/client.ts | 85 +-------------- src/reload-race.test.ts | 227 ---------------------------------------- 2 files changed, 2 insertions(+), 310 deletions(-) delete mode 100644 src/reload-race.test.ts diff --git a/src/client.ts b/src/client.ts index 5d27db9..a6e822b 100644 --- a/src/client.ts +++ b/src/client.ts @@ -30,16 +30,6 @@ const GATEWAY_API = "v1"; // used, and the server never returns a token), so it's never exposed there. const EU_SESSION_KEY = "bool_eu_session_token"; -/** Collapse a burst of doorbell pings into one reload. The trigger fires once per - * changed ROW, so a bulk write produces N pings for what the app should treat as - * a single refresh. */ -const PING_COALESCE_MS = 50; - -/** Never hold a ping longer than this, even with writes still in flight — - * otherwise someone editing continuously would stop seeing other people's - * changes for as long as they kept typing. */ -const MAX_HOLD_MS = 2000; - /** True when `host` is a single-label deployment subdomain of `appHost` (e.g. * "acme.bool.so" under "bool.so") — the exact shape the platform proxy rewrites * to /served/