Repository navigation
Commit 5f22701
fix(signals): latest() read inline and through a memo show the same screen (#4401)
* fix(signals): latest() read inline and through a memo show the same screen
- #4284 through a memo: a render effect a verdict memo's change re-runs
reads as that pass's verdict reader (`laneDirty`), so
`${x()} ${derived()} / ${L()}` tears to `1 x1 / 5` beside a lane held on
downstream async, as the inline read does.
- A plain write beside an async memo: a pass that read the frame's staging
before the frame had a transaction re-derives once as a verdict reader if
the frame parks (`provisionalVerdict` watch, `laneSeams`), so
`[s(), latest(s)]` shows `v:0 l:1` as `[latest(s), s()]` does; a flush
that commits runs it once.
- C4: the committed frame's [s(), latest(s)] effect beside one a held pass
created tears during the hold inline too: a verdict lane born at the park
seam (its zombie verdict readers' work) is judged at that seam, and a
reader born into the frame is not re-derived there (#4010).
- latest() of a derivation's first load in flight in a verdict lane is
loading (D-22), and a lane's dissolution no longer commits such a load as
`undefined` (async-gen seed 3289 #464, #929).
Size-Exception: size golfing waived by the maintainer (2026-10-29); the
frozen live-server floor's recorded minified moves 115,217 -> 115,374 B.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
* fix(signals): a pass born in a staged reader stays the frame's on a verdict memo read (C4, #4010)
C4 follows #4010 (ruling A): a render effect a held pass creates was born
into the frame, has no screen, and reads its transaction's values, inline
or through a verdict memo. A verdict-memo read by a pass whose creator
chain read the staging or joined the hold no longer breaks it out into
the verdict lane, where the seam re-derived it on the screen.
The `creatorReads` helper and the `enterLane` hunk are byte-identical to
#4394's, so the two merge cleanly (the lanes.ts import line aside).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
* fix(signals): a first load in flight stays loading through an identity memo, a derived store and isPending
- E2/E3 (async-gen seed 91501 #504): a lane's dissolution no longer
commits an empty `_value` for a first load the lane produced nothing for
whose own flight is up (now whether or not its inputs were published),
nor for a node pending on such a load (an identity memo of it, a
derived store's derive). `latest()` of the identity memo or the store's
key is loading, as the direct read is (D-22).
- #156: `isPending()` of a first load in flight in a verdict lane is
loading (A19 exc. 1), as `latest()` of it is; the boundary keeps its
fallback instead of revealing a leaf whose effect then throws. A re-ask
of a load an error answered first stays pending (D-41, #4375).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
* chore(size): fold the dissolve guard into one expression and re-record this PR's size
The first-load guard in dissolveLane reads as one conditional; the five
grown scenarios' recorded minified and their ledger lines now carry the
whole PR (C4, the identity-memo and derived-store first loads, #156).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
* fix(signals): a plain write beside latest() runs once; an error stays the display while the memo it came through re-asks
- provisionalVerdict watches a `latest` reader only for a staged read made
before the frame had a transaction; one made in an action's world stays
the frame's (#4394's E9 pin). The lane seam judges a watched pass no
transaction holds (an effect) by the frame's transaction: it re-derives
only if the frame parks, so a plain sync write computes once.
- An error boundary keeps a reader that is pending again after the source
that threw answered (D-39: a pending is not a value), so a grouped and a
split leaf show the same screen through the re-ask (async-gen 91501
#1831).
- recompute's CONFIG_VERDICT clear sits behind the lane engine, the only
build that sets it, so the floors drop instead of growing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
* chore(size): re-record this PR's size over next @ 7ebd4a3; cite D-22 in the runs-once pin
The five grown scenarios' recorded minified move to the merge's measure
(+240 to +252 B minified over next; every floor -21 B). The Size-Exception
cites the maintainer's "only flag me if brotli goes more than 20kb"
(2026-10-29). The runs-once pin cites D-22 (a staging not yet held is the
frame's read; one re-derive only if the flush parks) and F-10.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
* chore(changeset): note the identity/store first loads, the one-compute plain write and the Errored re-ask
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
* test(web): pass a string title in the latest() parity spec so test-types passes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
* fix(signals): a memo of latest() computes once on a plain write; a Loading fallback behind an error keeps the error up
- A transaction only a `latest()` read opened holds nothing: a verdict
reader's plain read of a staging in it, from the frame's seat, is the
frame's read, watched by the seam, which re-derives it once only if the
flush parks (D-22, F-10). So `[s(), L()]` with `L = createMemo(() =>
latest(s))` computes once per write, as the inline form does (F-6), and
the inline form beside such a memo does too. Lane work still sees the
screen (D-37).
- A Loading boundary catching under an error boundary that shows its
fallback records the reader on the error boundary too: the inner
fallback is hidden behind the error, which stays until the re-ask
answers (D-39) — a body read now shows `[E]` like an effect read.
- Pins: runs-once over inline, memo, inline beside a memo, latest(memo) ×
memo, render effect, user effect (two writes); JSX inline/memo ×
attributes/template; the D-39 body read.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
* fix(signals): a pass with no value yet reads the screen in a latest()-only transaction; latestOpened clears on a real join
- stagedScreen's frame-read branch (D-22) skips a pass with no value yet:
its first answer is nobody's hold (D-6) and would commit the staging
whether or not the frame parks. It reads the screen and runs again at
the landing, as before. Async-gen seed 3289 #1831: a grouped leaf ended
on [ROOT-E] where the split one, and next, show [F] (F-1, F-12). The
minimized case and the generated one (default, grouped, split,
latest-through-a-memo) are pinned.
- latestOpened clears when anything else joins the flush's transaction
(joinFuture) and when the flush ends.
- caught()'s walk to an error fallback above a Loading is one loop with
no type test outside it (-20 B on the boundary bundles).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
* fix(signals): latestOpened clears only at flush end, not on a real join
Clearing the `latest()`-only record in `joinFuture` let a memo of
`latest()` end on a stuck `[ROOT-E]` where the inline read shows content
(async-gen 91501 #1158, E9). The two forms must show the same screen
(F-6), so the record now clears only when the flush ends; a verdict
reader's plain read of a staging in that transaction stays the frame's
read (D-22), not lane work (D-37) and not a pass with no value yet (D-6).
Pins #1158's E9 form in packages/web/test/async-gen/e9-91501-1158.spec.ts
(fails on 9efb987). Ledger lines and the live-server floor follow the
-8 B minified.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015hPxMkC3jg3Uivh65gvaf2
---------
Co-authored-by: Claude <[email protected]>1 parent 24adaff commit 5f22701
15 files changed
Lines changed: 1095 additions & 95 deletions
File tree
- .changeset
- packages
- signals
- docs
- src
- core
- tests
- web/test
- async-gen
- scripts/size
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
202 | 209 | | |
203 | 210 | | |
204 | 211 | | |
| |||
327 | 334 | | |
328 | 335 | | |
329 | 336 | | |
330 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
331 | 342 | | |
332 | 343 | | |
333 | 344 | | |
| |||
336 | 347 | | |
337 | 348 | | |
338 | 349 | | |
339 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
340 | 354 | | |
341 | 355 | | |
342 | 356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
402 | | - | |
403 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
404 | 410 | | |
405 | 411 | | |
406 | 412 | | |
| |||
2184 | 2190 | | |
2185 | 2191 | | |
2186 | 2192 | | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
2187 | 2208 | | |
2188 | 2209 | | |
2189 | 2210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
508 | 509 | | |
509 | 510 | | |
510 | 511 | | |
| 512 | + | |
| 513 | + | |
511 | 514 | | |
512 | 515 | | |
513 | 516 | | |
| |||
543 | 546 | | |
544 | 547 | | |
545 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
546 | 555 | | |
547 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
548 | 563 | | |
549 | 564 | | |
550 | 565 | | |
| |||
926 | 941 | | |
927 | 942 | | |
928 | 943 | | |
929 | | - | |
| 944 | + | |
930 | 945 | | |
931 | 946 | | |
932 | 947 | | |
933 | 948 | | |
934 | 949 | | |
935 | 950 | | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
940 | 960 | | |
941 | 961 | | |
942 | 962 | | |
| |||
946 | 966 | | |
947 | 967 | | |
948 | 968 | | |
949 | | - | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
950 | 974 | | |
951 | 975 | | |
952 | 976 | | |
953 | 977 | | |
954 | 978 | | |
955 | 979 | | |
956 | 980 | | |
957 | | - | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
958 | 986 | | |
959 | 987 | | |
960 | 988 | | |
| |||
967 | 995 | | |
968 | 996 | | |
969 | 997 | | |
970 | | - | |
971 | | - | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
972 | 1004 | | |
973 | 1005 | | |
974 | 1006 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
329 | 336 | | |
330 | 337 | | |
331 | 338 | | |
| |||
917 | 924 | | |
918 | 925 | | |
919 | 926 | | |
920 | | - | |
| 927 | + | |
921 | 928 | | |
922 | 929 | | |
923 | 930 | | |
| |||
1036 | 1043 | | |
1037 | 1044 | | |
1038 | 1045 | | |
1039 | | - | |
| 1046 | + | |
1040 | 1047 | | |
1041 | 1048 | | |
1042 | 1049 | | |
| |||
1324 | 1331 | | |
1325 | 1332 | | |
1326 | 1333 | | |
1327 | | - | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1328 | 1343 | | |
1329 | 1344 | | |
1330 | | - | |
1331 | | - | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
1332 | 1350 | | |
1333 | 1351 | | |
1334 | 1352 | | |
| |||
0 commit comments