@@ -30,7 +30,6 @@ import {
3030 skip_nodes ,
3131 set_hydrate_node
3232} from '../hydration.js' ;
33- import { create_text } from '../operations.js' ;
3433import { queue_micro_task } from '../task.js' ;
3534import * as e from '../../errors.js' ;
3635import * as w from '../../warnings.js' ;
@@ -93,9 +92,6 @@ export class Boundary {
9392 /** @type {DocumentFragment | null } */
9493 #offscreen_fragment = null ;
9594
96- /** @type {TemplateNode | null } */
97- #pending_anchor = null ;
98-
9995 #local_pending_count = 0 ;
10096 #pending_count = 0 ;
10197
@@ -159,17 +155,8 @@ export class Boundary {
159155 this . #hydrate_resolved_content( ) ;
160156 }
161157 } else {
162- var anchor = this . #anchor;
163-
164- if ( this . #pending) {
165- this . #pending_anchor = create_text ( ) ;
166- this . #anchor. before ( this . #pending_anchor) ;
167-
168- anchor = this . #pending_anchor;
169- }
170-
171158 try {
172- this . #main_effect = branch ( ( ) => children ( anchor ) ) ;
159+ this . #main_effect = branch ( ( ) => children ( this . # anchor) ) ;
173160 } catch ( error ) {
174161 this . error ( error ) ;
175162 }
@@ -178,7 +165,6 @@ export class Boundary {
178165 this . #show_pending_snippet( ) ;
179166 } else {
180167 this . #pending = false ;
181- this . #pending_anchor?. remove ( ) ;
182168 }
183169 }
184170 } , flags ) ;
@@ -208,18 +194,9 @@ export class Boundary {
208194 this . #pending_effect = branch ( ( ) => pending ( this . #anchor) ) ;
209195
210196 Batch . enqueue ( ( ) => {
211- var anchor = this . #anchor;
212-
213- if ( this . #pending) {
214- this . #pending_anchor = create_text ( ) ;
215- this . #anchor. before ( this . #pending_anchor) ;
216-
217- anchor = this . #pending_anchor;
218- }
219-
220197 this . #main_effect = this . #run( ( ) => {
221198 Batch . ensure ( ) ;
222- return branch ( ( ) => this . #children( anchor ) ) ;
199+ return branch ( ( ) => this . #children( this . # anchor) ) ;
223200 } ) ;
224201
225202 if ( this . #pending_count > 0 ) {
@@ -230,7 +207,6 @@ export class Boundary {
230207 } ) ;
231208
232209 this . #pending = false ;
233- this . #pending_anchor?. remove ( ) ;
234210 }
235211 } ) ;
236212 }
@@ -276,7 +252,6 @@ export class Boundary {
276252
277253 if ( this . #main_effect !== null ) {
278254 this . #offscreen_fragment = document . createDocumentFragment ( ) ;
279- this . #offscreen_fragment. append ( /** @type {TemplateNode } */ ( this . #pending_anchor) ) ;
280255 move_effect ( this . #main_effect, this . #offscreen_fragment) ;
281256 }
282257
@@ -312,7 +287,6 @@ export class Boundary {
312287 }
313288
314289 if ( this . #offscreen_fragment) {
315- this . #pending_anchor?. remove ( ) ;
316290 this . #anchor. before ( this . #offscreen_fragment) ;
317291 this . #offscreen_fragment = null ;
318292 }
0 commit comments