svelte icon indicating copy to clipboard operation
svelte copied to clipboard

await in keyed each triggers rerender on every update

Open seo-rii opened this issue 1 year ago • 0 comments

Describe the bug

As described in the link, if you assign a key to an each tag, you must maintain the current structure without re-rendering for fixed key, even if the list changes. However, the await tag in this will trigger re-rendering each time the list is updated.

Reproduction

https://svelte.dev/repl/9dc6c277301b4ad7bb40aac0c4f0fcd5?version=3.59.2

Logs

No response

System Info

Edge Latest, REPL Latest

Severity

annoyance

seo-rii avatar Jun 22 '23 09:06 seo-rii