backbone.memento icon indicating copy to clipboard operation
backbone.memento copied to clipboard

Restoring collection creates new model instances

Open Grid405 opened this issue 1 year ago • 0 comments

Hi River Lynn,

thank you for this awesome plugin, after all these years i'm still using it a lot. I recently ran into an issue with collections that contain models that are also contained in other collections. Using restore on a collection causes the collection to discard the original model instances and create new ones, after which changing a model in that collection won't affect the same model in another collection anymore, because they are no longer the same instance. If it doesn't create other problems down the line, it seems beneficial if the original model instances would be kept when restoring a collection.

Grid405 avatar Dec 27 '23 01:12 Grid405