-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Description
Describe the bug
This code:
<script>
let arr = $state([1,2,3]);
</script>
{#each arr as value}
<button onclick={() => value += 1}>Click me and get error</button>
{/each}
causes the error "Error: arr is not defined"
When clicking on the button.
No idea if this has been posted before or not
Reproduction
Logs
No response
System Info
repl
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels