From ef30c3777ae1c795d6445ae484632b68f8c2f5cd Mon Sep 17 00:00:00 2001 From: LukeParkerDev <10430890+Hona@users.noreply.github.com> Date: Wed, 20 May 2026 17:34:52 +1000 Subject: [PATCH] fix(app): avoid invalid continue in virtua patch --- patches/virtua@0.49.1.patch | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/patches/virtua@0.49.1.patch b/patches/virtua@0.49.1.patch index b51f9a7308..03089aa319 100644 --- a/patches/virtua@0.49.1.patch +++ b/patches/virtua@0.49.1.patch @@ -57,18 +57,21 @@ index 029201a2c8..e3c4c0ca3a 100644 @@ -1430,5 +1449,7 @@ const Virtualizer = (props) => { else { for (let [i, j] = range(); i <= j; i++) { -+ if (i < 0 || i >= count) -+ continue; - items.push(props.data[i]); - indexes.push(i); ++ if (i >= 0 && i < count) { +- items.push(props.data[i]); +- indexes.push(i); ++ items.push(props.data[i]); ++ indexes.push(i); ++ } } @@ -1579,6 +1600,8 @@ const VList = (props) => { }); const items = []; for (let [i, j] = range(); i <= j; i++) { -+ if (i < 0 || i >= count) -+ continue; - items.push(props.data[i]); ++ if (i >= 0 && i < count) { +- items.push(props.data[i]); ++ items.push(props.data[i]); ++ } } return items; diff --git a/lib/solid/Virtualizer.d.ts b/lib/solid/Virtualizer.d.ts