@@ -219,17 +219,7 @@ export function each(node, flags, get_collection, get_key, render_fn, fallback_f
219
219
}
220
220
221
221
if ( ! hydrating ) {
222
- var effect = /** @type {Effect } */ ( active_reaction ) ;
223
- reconcile (
224
- array ,
225
- state ,
226
- anchor ,
227
- render_fn ,
228
- flags ,
229
- ( effect . f & INERT ) !== 0 ,
230
- get_key ,
231
- get_collection
232
- ) ;
222
+ reconcile ( array , state , anchor , render_fn , flags , get_key , get_collection ) ;
233
223
}
234
224
235
225
if ( fallback_fn !== null ) {
@@ -273,12 +263,11 @@ export function each(node, flags, get_collection, get_key, render_fn, fallback_f
273
263
* @param {Element | Comment | Text } anchor
274
264
* @param {(anchor: Node, item: MaybeSource<V>, index: number | Source<number>, collection: () => V[]) => void } render_fn
275
265
* @param {number } flags
276
- * @param {boolean } is_inert
277
266
* @param {(value: V, index: number) => any } get_key
278
267
* @param {() => V[] } get_collection
279
268
* @returns {void }
280
269
*/
281
- function reconcile ( array , state , anchor , render_fn , flags , is_inert , get_key , get_collection ) {
270
+ function reconcile ( array , state , anchor , render_fn , flags , get_key , get_collection ) {
282
271
var is_animated = ( flags & EACH_IS_ANIMATED ) !== 0 ;
283
272
var should_update = ( flags & ( EACH_ITEM_REACTIVE | EACH_INDEX_REACTIVE ) ) !== 0 ;
284
273
@@ -420,7 +409,7 @@ function reconcile(array, state, anchor, render_fn, flags, is_inert, get_key, ge
420
409
while ( current !== null && current . k !== key ) {
421
410
// If the each block isn't inert and an item has an effect that is already inert,
422
411
// skip over adding it to our seen Set as the item is already being handled
423
- if ( is_inert || ( current . e . f & INERT ) === 0 ) {
412
+ if ( ( current . e . f & INERT ) === 0 ) {
424
413
( seen ??= new Set ( ) ) . add ( current ) ;
425
414
}
426
415
stashed . push ( current ) ;
@@ -444,7 +433,7 @@ function reconcile(array, state, anchor, render_fn, flags, is_inert, get_key, ge
444
433
445
434
while ( current !== null ) {
446
435
// If the each block isn't inert, then inert effects are currently outroing and will be removed once the transition is finished
447
- if ( is_inert || ( current . e . f & INERT ) === 0 ) {
436
+ if ( ( current . e . f & INERT ) === 0 ) {
448
437
to_destroy . push ( current ) ;
449
438
}
450
439
current = current . next ;
0 commit comments