-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
foreach doubles last entries under certain circumstances #2594
Comments
Also somewhat weird: If I have two foreach on my page only the first one will be affected. |
I've got a table component which duplicates lines for no reason. My component life cycle looks like your example. I'm happy you was able to pinpoint the issue in a simple example. By the way, your demo link is broken in the issue description. |
Thx, I fixed the link in my description and I try to avoid |
I think this will be fixed with c41c1c3, but I'll double check. |
See: https://codepen.io/coyer/pen/zYRRqyo?editors=1010
HTML:
Script:
Expected Output after 300ms:
"cat", "dog", "mice", "bird"
but is
"cat", "dog", "mice", "bird", "mice", "bird"
But works with "ko.options.deferUpdates = false;"
or without "vm.key.valueHasMutated();" before setting new list
or new list has same length as old list.
Anyway - thanks for the good job on knockout!
The text was updated successfully, but these errors were encountered: