svelte
svelte copied to clipboard
await in keyed each triggers rerender on every update
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