-
- Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
Svelte each block now supports undefined and null.
The docs should be updated to match this behavior.
Current explanation is incorrect:
in other words, anything that can be used with
Array.from.
Array.from(undefined); // Uncaught TypeError: can't access property Symbol.iterator, items is undefined Array.from(null); // Uncaught TypeErrorStating this in the docs will avoid LLMs from writing ?? [] inside the each loop.
Reproduction
Logs
System Info
-Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels