๐Ÿ“ฐ Barefoot Blog
font1
โ† All posts

Rapid-fire clicks and the last-wins rule

2026-06-14 ยท post 4 of 10 ยท #perf #runtime
โฑ 0.0s on this page
Now playing ยท Ambient Focus0.0s

Users double-click. They click B before A has loaded. The router aborts the in-flight request and bails after each await, so the latest target always wins.

The stress harness forces a slow response, then navigates away, and asserts the stale content never lands.

This was a real race in the first cut โ€” the prototype now has a regression test for it.