Repository navigation
Commit 9a213bb
fix(signals): derived writes apply first, then derivations re-run (#3742)
A manual write to createSignal(fn) / createStore(fn) lands at once and never
re-runs the derivation on its own; a source change, in the same flush or
later, inside or outside an action, across a hold, re-runs it with the write
as `prev` (the store's draft). Reverses #2692's beta.11 same-tick precedence
(maintainer-approved): within a flush call order isn't observable, and for
stores a partial write dropped the whole fold. Supersedes #3740's
frame-scoped mask: the heap refusal, `_manualWriteTime` and the setter's
deleteFromHeap / DIRTY-CHECK clear are removed; REACTIVE_MANUAL_WRITE keeps
only its A34 proposal role. Refs #3733.
Co-authored-by: Claude via Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>1 parent 3ed3810 commit 9a213bb
22 files changed
Lines changed: 611 additions & 250 deletions
File tree
- .changeset
- documentation/solid-2.0
- packages
- signals
- docs
- rules-mining
- src
- core
- store/next
- tests
- store
- solid/src/client
- scripts/size
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
114 | 135 | | |
115 | 136 | | |
116 | 137 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
680 | 679 | | |
681 | 680 | | |
682 | 681 | | |
| |||
0 commit comments