File tree Expand file tree Collapse file tree
packages/solid/src/reactive Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " solid-js " : patch
3+ ---
4+
5+ fix missing disposal of nested transition nodes
Original file line number Diff line number Diff line change @@ -1654,12 +1654,12 @@ function cleanNode(node: Owner) {
16541654 }
16551655 }
16561656
1657+ if ( ( node as Memo < any > ) . tOwned ) {
1658+ for ( i = ( node as Memo < any > ) . tOwned ! . length - 1 ; i >= 0 ; i -- )
1659+ cleanNode ( ( node as Memo < any > ) . tOwned ! [ i ] ) ;
1660+ delete ( node as Memo < any > ) . tOwned ;
1661+ }
16571662 if ( Transition && Transition . running && ( node as Memo < any > ) . pure ) {
1658- if ( ( node as Memo < any > ) . tOwned ) {
1659- for ( i = ( node as Memo < any > ) . tOwned ! . length - 1 ; i >= 0 ; i -- )
1660- cleanNode ( ( node as Memo < any > ) . tOwned ! [ i ] ) ;
1661- delete ( node as Memo < any > ) . tOwned ;
1662- }
16631663 reset ( node as Computation < any > , true ) ;
16641664 } else if ( node . owned ) {
16651665 for ( i = node . owned . length - 1 ; i >= 0 ; i -- ) cleanNode ( node . owned [ i ] ) ;
You can’t perform that action at this time.
0 commit comments