Skip to content
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

rollbackAttributes or unloadRecord while iterating a sync hasMany relationship errors #7886

Closed
runspired opened this issue Feb 18, 2022 · 0 comments · Fixed by #7900
Closed
Labels
🏷️ bug This PR primarily fixes a reported issue

Comments

@runspired
Copy link
Contributor

Affects pretty much all versions of ember-data. Basically an operation that results in removal from the array being iterated affects later iterations, causing an out-of-bounds error. For each record unloaded, iteration will both skip the next item in the array and encounter an undefined index at the end of the array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bug This PR primarily fixes a reported issue
Projects
Archived in project
1 participant