Skip to content

Commit b5d26a0

Browse files
committed
test(web): #4375 hydration pins the asks over latest(s) under R5's adopted frame flight
Over `latest(s)` the write asks m0's frame question first (R5), the verdict lane's intermediate next, and the landing adopts the frame's flight: `m0:5, m0:4, m1:5, m1:6`, each question asked once. The control keeps its `m0:5, m1:6` tail. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
1 parent 10a319e commit b5d26a0

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎packages/web/test/hydration/errored-pending-reask-4375.spec.tsx‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,16 @@ describe("#4375: a served rejection read only through isPending, hydrated", () =
9999
expect(asks()).toEqual([]);
100100

101101
// The input changes (mid-hydration for `slow`, streamed): both
102-
// memos ask (a client render asks `m0` for the intermediate
103-
// `1 + latest(s) + s()` too), and the page stays live.
102+
// memos ask, each question once, and the page stays live. Over
103+
// `latest(s)`, m0's frame pass asks the frame's `m0:5` (R5), the
104+
// parked flush re-derives it in the verdict lane for the
105+
// intermediate `1 + latest(s) + s()` (`m0:4`, `m1:5`), and the
106+
// landing adopts the frame's `m0:5` (F-9).
104107
write(2);
105108
await settle();
106109
expect(asks()).not.toContain("m0:3");
107-
expect(asks().slice(-2)).toEqual(["m0:5", "m1:6"]);
110+
if (o.latest) expect(asks()).toEqual(["m0:5", "m0:4", "m1:5", "m1:6"]);
111+
else expect(asks().slice(-2)).toEqual(["m0:5", "m1:6"]);
108112
for (const c of held) {
109113
applyChunk(container, c, false);
110114
await settle();

0 commit comments

Comments
 (0)