Repository navigation
Commit 34083ca
committed
fix(octane): skip view allocation in presentDefinition under read barrier
When a binding is frozen or owner.readBarrier is set, presentDefinition
was creating a private view whose evaluate would return pendingState
(since the new view node has no prior state). This hid the committed
cell's ready value during hydration or historical re-renders.
Return undefined early in both DerivedBinding and ScalarBinding
presentDefinition when frozen or under a read barrier. This keeps the
committed cell presenting its existing state, and installDefinition
rebinds the compute when the render settles.1 parent 5007de8 commit 34083ca
2 files changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
0 commit comments