Skip to content

Commit 04a84ba

Browse files
committed
add TODOs
1 parent 61e4c19 commit 04a84ba

File tree

1 file changed

+2
-0
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+2
-0
lines changed

packages/svelte/src/internal/client/dom/blocks/each.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ function reconcile_tracked_array(array, state, anchor, render_fn, flags, keys) {
423423
});
424424
}
425425

426+
// TODO: would be good to avoid this closure in the case where we have no
427+
// transitions at all. It would make it far more JIT friendly in the hot cases.
426428
pause_effects(to_destroy, () => {
427429
state.items = b_items;
428430
});

0 commit comments

Comments
 (0)