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
I created a store of type Writable<string[]> and them I wanted to iterate over the value of the store to create a component for each item in the array. This child component also happens to have a text input box in it as well as a button that when clicked will remove the value from the store. In the example I provided, I have three of these child components. If I click the remove button for the middle component in the array, it gets removed but the value of the text input for component 3 gets set to the prior value of component 2.
Describe the bug
I created a store of type
Writable<string[]>
and them I wanted to iterate over the value of the store to create a component for each item in the array. This child component also happens to have a text input box in it as well as a button that when clicked will remove the value from the store. In the example I provided, I have three of these child components. If I click the remove button for the middle component in the array, it gets removed but the value of the text input for component 3 gets set to the prior value of component 2.Before Removal
After Removal
Reproduction
https://github.com/rpf3/example-each-loop-bug
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: