You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 492a84b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(createDeferred): carry #3710's pins; a held re-ask joins nothing (D11)
Ports #3710's signals tests (D1-D11, mizulu's graph), its web and
hydration specs and the deferred-settled-element harness scenario, and
makes them pass:
- D11: an answered deferred node carries CONFIG_LAGS; recompute's T4 arm
does not join its held re-pass to the hold, and the wrapper serves the
staged landing as the pass's value, so the write commits mainline and
the hold keeps the landing it took.
- until over a derivation is released by an equal-value landing: the
mark's repoll re-runs truth readers too (not through a derived store,
whose leaves re-run them at the derive's write).
- The lag walk hops a store slot to its family's derive.
The disposal pin is rewritten to this PR's behaviour (the mark drops at
disposal). Treeshake pins cover the deferred module and the mark core.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01S2HrYgWeGJX6hKw7bD5LQN
Copy file name to clipboardExpand all lines: packages/signals/docs/RULES-DERIVED.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -345,12 +345,13 @@ An `<Errored>` flipping to its fallback is a boundary going back to its fallback
345
345
-**Nothing waits for it.** A change that re-asks it holds nothing on its account: its readers keep the answer they show, and the rest of the change shows now. An unready source it reads (`createDeferred(() => query())`) is the same: the node keeps its answer, nothing pends through it.
346
346
-**Its landing is a change of its own.** It shows when it lands, unless it lands into a hold (next bullet); an unrelated hold does not keep it back.
347
347
-**It never leads.** A re-ask that read a held value derived from that hold's world, so its answer lands into that hold and shows with its commit (F-7). Its readers that also read a held value see the committed one, as any reader does.
348
+
-**A held answer stays held.** Once a hold has taken its landing (a reader downstream is pending and staged it), a change that re-asks it still holds nothing: the change shows now, and the hold keeps the landing it took and shows it at its commit.
348
349
-**The verdict sees it.**`isPending` of the node, and of everything derived from it (a memo over it, a derived store's keys), is `true` from the re-ask until the landing (F-9: a new question). A `refresh()` re-ask is quiet. The verdict and the landed value change in one frame.
349
350
-**Truth readers wait for it.**`await refresh(d)` delivers the landing; `until`'s predicate does not see the stale answer of a source it derives from (the reader's own declaration: `resolve` takes the first settled value and does not wait).
350
351
-**Errors are not lag.** A rejected re-ask errors like any memo (F-12); the stale answer never masks it.
351
352
-**On the server it is `createMemo`** (everything is first load there).
352
353
353
-
**Collapses:**`docs/create-deferred.md` D1–D10 (2026-09-08; its lane-landing mechanism is superseded, see its §6). **Status:** standing, built 2026-10-14 (`tests/create-deferred.test.ts`).
354
+
**Collapses:**`docs/create-deferred.md` D1–D11 (2026-09-08, D11 ruled 2026-10-04; its lane-landing mechanism is superseded, see its §6). **Status:** standing, built 2026-10-14 (`tests/create-deferred.test.ts`, `tests/create-deferred-3710.test.ts`).
0 commit comments