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

Use cid until server returns "new" uniqe id for this model. #180

Open
oak-tree opened this issue Jun 7, 2015 · 0 comments
Open

Use cid until server returns "new" uniqe id for this model. #180

oak-tree opened this issue Jun 7, 2015 · 0 comments
Labels

Comments

@oak-tree
Copy link

oak-tree commented Jun 7, 2015

It seems that if model does not have an id then backbone.localStorage adapter generate new cid for it. But when the server returns a new id it takes over model.id and then this makes the adapter save the model twice. Any ideas how to make it play nice when waiting for id from server but still allow offline support?

@scott-w scott-w added the bug label Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants