Repository navigation
Commit 1dc0b45
fix(signals): make mark-only pending value-transparent on the read path
An affects() mark's sentinel put derived nodes into STATUS_PENDING, and
read() treated that like real in-flight async — suspending the reader — so
an optimistic insert under a whole-store mark never rendered in a live
mapArray/For for the duration of the action (#2886). A mark is a promise
of change, not an absence of value: reads whose owner's pending sources
are all affects sentinels now skip the suspension branch (gated off the
mark-free hot path by activeAffectsMarks), so pendingness reaches readers
exclusively through isPending verdicts while values keep flowing.
Co-authored-by: Cursor <[email protected]>1 parent 442ad9a commit 1dc0b45
6 files changed
Lines changed: 97 additions & 5 deletions
File tree
- .changeset
- packages/solid-signals
- src/core
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
444 | 449 | | |
445 | 450 | | |
446 | 451 | | |
| |||
0 commit comments