You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting in Svelte version 3.38.0, if you have a keyed each block (didn't test unkeyed), after (very) few updates, Svelte starts rendering the items in the wrong order (== the order on the screen does not match the order in the array).
I have provided a minimal yet detailed example (REPL) below.
If you change the Svelte version to 3.37.0 or anything prior (in the provided REPL's URL), you'll see that it starts working fine.
This also affects SvelteKit.
It reproduces in the REPL and locally.
It seems to be browser independent (tested on Chrome and FFX and Safari).
The instructions are in the REPL.
Basically click a button a few of times to re-shuffle an array that is rendered via a keyed each block.
When the order gets out of sync it will be indicated on screen (wait for the red colour).
Describe the bug
Starting in Svelte version 3.38.0, if you have a keyed each block (didn't test unkeyed), after (very) few updates, Svelte starts rendering the items in the wrong order (== the order on the screen does not match the order in the array).
I have provided a minimal yet detailed example (REPL) below.
If you change the Svelte version to 3.37.0 or anything prior (in the provided REPL's URL), you'll see that it starts working fine.
This also affects SvelteKit.
It reproduces in the REPL and locally.
It seems to be browser independent (tested on Chrome and FFX and Safari).
Reproduction
https://svelte.dev/repl/b255c81059ce4b81aab963d837d29aab?version=3.38.3
The instructions are in the REPL.
Basically click a button a few of times to re-shuffle an array that is rendered via a keyed each block.
When the order gets out of sync it will be indicated on screen (wait for the red colour).
Logs
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: