Closed
Description
Describe the bug
This bug appears only in the REPL. It works locally.
<script>
let objArray = $state([{a: 1, b:2}, {a: 3, b:4}]);
</script>
<button onclick={() => {objArray = [{a: 8, b:2}, {a: 12, b:4}]}}>
change
</button>
{#each objArray as c}
<p>{c.a} - {c.b}</p>
<input bind:value={c.a}/>
{/each}
- If I change the input value, the state is updated
- If I press the change button and afterwards change the input value, the state is also updated
- BUT If I press the button multiple times and then change the input value, the state is NOT updated anymore
Reproduction
Logs
No response
System Info
Svelte v5.0.0-next.27
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels