Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Model creation and modification race condition #151

@headlessme

Description

@headlessme

If a model is modified several times in quick succession, before a response from the server is received this leads to duplicate models created in the local storage. This seems to be because the Backbone generated cid is ignored and instead a copy of the model is created in modelUpdatedWithResponse along with it's own GUID that's used in local storage.

What is the purpose of creating a copy of the model when an existing one is available and could be updated instead?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions