Repository navigation
Commit 1b171ea
committed
fix(runtime): prevent pending render from poisoning text hole token
When bindSignalChild's primitive fast path skips writing because the
current block is pending, the function was still returning the new value
as the hole token. This caused the subsequent committed render with the
same value to identity-skip (previous === value) and never call setText,
leaving stale DOM text in place.
Hoist the pending condition into a pendingSkip variable and gate the
token return on it, so a pending render preserves the previous token
and the committed render always writes.1 parent 6812f00 commit 1b171ea
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35652 | 35652 | | |
35653 | 35653 | | |
35654 | 35654 | | |
35655 | | - | |
35656 | | - | |
35657 | | - | |
35658 | | - | |
35659 | | - | |
| 35655 | + | |
| 35656 | + | |
35660 | 35657 | | |
35661 | 35658 | | |
35662 | 35659 | | |
| |||
35686 | 35683 | | |
35687 | 35684 | | |
35688 | 35685 | | |
35689 | | - | |
| 35686 | + | |
35690 | 35687 | | |
35691 | 35688 | | |
35692 | 35689 | | |
| |||
0 commit comments