pull/10798/head
Rich Harris 2 years ago
parent 4a97674b04
commit 5768b83306

@ -420,16 +420,10 @@ function reconcile_tracked_array(array, each_block, dom, is_controlled, render_f
} }
// Step 3 // Step 3
if (start > a_end - 1) { if (start >= a_end) {
while (b_end - 1 >= start) { while (--b_end >= start) {
block = create_each_item_block( block = create_each_item_block(array[b_end], keys[b_end], b_end, render_fn, flags);
array[b_end - 1], b_blocks[b_end] = block;
keys[b_end - 1],
b_end - 1,
render_fn,
flags
);
b_blocks[b_end-- - 1] = block;
sibling = insert_each_item_block(block, dom, is_controlled, sibling); sibling = insert_each_item_block(block, dom, is_controlled, sibling);
} }
} else if (start > b_end - 1) { } else if (start > b_end - 1) {

Loading…
Cancel
Save