Repository navigation
Commit 2e2920d
committed
fix(runtime): journal binding.block during scalar-to-block style upgrade
The scalar-to-block upgrade path in nativePresentationBinding assigned
binding.block without journaling it. On transition rollback, the
JOURNAL_CREATED entry would unmount and dispose the block, but
binding.block still pointed at the disposed block, leaving a dangling
reference that could cause later renderBlock calls to operate on a
disposed block or let the block keep writing styles after rollback.
Add journalRootProperty(binding, 'block', binding.block) before the
assignment so rollback restores the binding to the scalar path.1 parent 699ab35 commit 2e2920d
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1278 | 1278 | | |
1279 | 1279 | | |
1280 | 1280 | | |
| 1281 | + | |
1281 | 1282 | | |
1282 | 1283 | | |
1283 | 1284 | | |
| |||
0 commit comments