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
If you want to replace a model with another model, without instantiating a new class, you now need to do .parse(model.toJS()). Perhaps we can do this automatically. Or maybe this should be a separate function, which replaces that model with the new one while keeping the instance.
The text was updated successfully, but these errors were encountered:
I'm leaning towards making this a separate function, because this can have some nasty side-effects. If the model was not instantiated from the same store, it could have different relations then the other models in the store.
If you want to replace a model with another model, without instantiating a new class, you now need to do
.parse(model.toJS())
. Perhaps we can do this automatically. Or maybe this should be a separate function, which replaces that model with the new one while keeping the instance.The text was updated successfully, but these errors were encountered: