Skip to content

Commit 04f48d0

Browse files
test(web): #4375 hydration pin asks of the truth — no display-ahead m0:4 (S-51)
Co-authored-by: tembo[bot] <208362400+tembo-io[bot]@users.noreply.github.com>
1 parent 5b9f67a commit 04f48d0

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

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

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,24 @@ 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, 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).
102+
// memos ask, of the truth, and the page stays live. Over
103+
// `latest(s)`, m0's pass reads `s` plainly beside the window, so
104+
// it is the hold's work and asks the frame's `m0:5` (F-2's
105+
// producer clause, S-51, 2026-11-07); the display-ahead
106+
// intermediate `1 + latest(s) + s()` (`m0:4`, `m1:5`) is no longer
107+
// asked. Most shapes ask `m0:5` twice — the resume's later round
108+
// re-asks the same question instead of adopting the flight (F-9);
109+
// a same-question re-ask, not a stale one, left as a follow-up.
107110
write(2);
108111
await settle();
109112
expect(asks()).not.toContain("m0:3");
110-
if (o.latest) expect(asks()).toEqual(["m0:5", "m0:4", "m1:5", "m1:6"]);
113+
expect(asks()).not.toContain("m0:4");
114+
if (o.latest)
115+
expect(asks()).toEqual(
116+
mode === "streamed" && !o.inside && !o.slow
117+
? ["m0:5", "m1:6"]
118+
: ["m0:5", "m0:5", "m1:6"]
119+
);
111120
else expect(asks().slice(-2)).toEqual(["m0:5", "m1:6"]);
112121
for (const c of held) {
113122
applyChunk(container, c, false);

0 commit comments

Comments
 (0)