-
Notifications
You must be signed in to change notification settings - Fork 31
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
Provide example of using bufferedProxy on records with relationships #7
Comments
I think the best way to model this would probably be to have a bufferedProxy per record, and apply or discard accordingly. |
I struggle to figure out how to do that. Can you please provide an example? I think using |
This would be super helpful to have documentation on the preferred way to buffer changes to |
I am struggling to rollback a model (post), whit has many (comments) , where comment belongs to (author). An example would be great. |
Having an example on how to use this on a model would be great. I'm also struggling with this issue. |
Hi! Thank you for you your awesome project.
I wonder whether i can use ember-buffered-proxy on Ember Data records.
My use case:
.rollback()
because it will revert the unsaved record to a tabula rasa state, while the user expects it to be reverted to state A.My problem is that the record in question does not store much data itself: all its data comes from related child and grandchild records.
Does this mean that i have to apply
discardBufferedChanges
recursively? Is there a simpler way?The text was updated successfully, but these errors were encountered: