From 4e45ffa6138c43ed8ff7f15f5902097cf4ca9651 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 15 Nov 2025 13:15:35 -0500 Subject: [PATCH] update note to self --- packages/svelte/src/internal/client/dom/blocks/each.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/svelte/src/internal/client/dom/blocks/each.js b/packages/svelte/src/internal/client/dom/blocks/each.js index 3cd20bc002..3f12593d01 100644 --- a/packages/svelte/src/internal/client/dom/blocks/each.js +++ b/packages/svelte/src/internal/client/dom/blocks/each.js @@ -535,13 +535,13 @@ function reconcile(each_effect, array, state, anchor, flags, get_key) { }); } + // TODO i have an inkling that the rest of this function is wrong... + // the offscreen items need to be linked, so that they all update correctly. + // the last onscreen item should link to the first offscreen item, etc each_effect.first = state.first && state.first.e; each_effect.last = prev && prev.e; if (prev) { - // TODO i think this is wrong... the offscreen items need to be linked, - // so that they all update correctly. the last onscreen item should link - // to the first offscreen item, etc prev.e.next = null; } }