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

List replace with deferreds does not take into account stale/overtaken deferreds #2136

Closed
rjgotten opened this issue Dec 14, 2015 · 0 comments · Fixed by #2144
Closed

List replace with deferreds does not take into account stale/overtaken deferreds #2136

rjgotten opened this issue Dec 14, 2015 · 0 comments · Fixed by #2144
Assignees
Milestone

Comments

@rjgotten
Copy link

When updating a list through the can.List.prototype.replace method and deferreds, the replace method fails to check whether the settled deferred is not stale, i.e., overtaken by a later replace operation on the same list.

When deferreds settle out-of-order (as is common with server requests and network connections over which the author has no control) this leads to potentially unexpected or invalid application states.

Example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants