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
While using #each inside a snippet, trying to pass the snippet as an argument to a function defined inside the component definition throws a "ReferenceError: x is not defined"
Passing it to a function defined inside an onclick handler of a button element still works
Describe the bug
While using #each inside a snippet, trying to pass the snippet as an argument to a function defined inside the component definition throws a "ReferenceError: x is not defined"
Passing it to a function defined inside an onclick handler of a button element still works
Removing the #each loop fixes the issue
Reproduction
https://svelte.dev/playground/646d5eeee3be4efca6f6a01dd89caf9d?version=5.23.0
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: