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
{{ message }}
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.
Collection#set uses this.model.prototype.idAttribute to test if it can update models in place. If this.model is actually a factory function wrapping Model.create, then this.model.prototype.idAttribute is undefined, so set decides to remove every model then add them back. This causes a race condition in my ListView, and it trashes everything.
The text was updated successfully, but these errors were encountered:
Collection#set
usesthis.model.prototype.idAttribute
to test if it can update models in place. Ifthis.model
is actually a factory function wrappingModel.create
, thenthis.model.prototype.idAttribute
is undefined, soset
decides toremove
every model thenadd
them back. This causes a race condition in my ListView, and it trashes everything.The text was updated successfully, but these errors were encountered: