-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Attempts to set property after model is deleted/rolled back #94
Comments
Hi @kmiyashiro! Could I get a stack trace / example code / steps to reproduce? I'm having trouble replicating this. |
I'll try reproducing in an isolated test case |
Sorry, I forgot to mention that I was using the default selection feature ( |
Here's a project that shows the issue. https://github.com/kmiyashiro/xselect-example
|
This error also pops its head up if you rollback the model and then make a new selection. |
Hey @kmiyashiro! Sorry this has taken so long. I do have another question: are you only rolling back on newly created records and seeing this error? Or is this an issue when rolling back an existing model? I also created an issue on Ember Data to get a little more help. If you'd like to follow along: emberjs/data#4209 |
@Robdel12 That's the only time I saw it because I immediately rolled back x-select and used a different method to set the default value. |
This should be fixed with the merge of #97. It does not fix rolling back a newly created model and trying to make a new selection since that's not the proper way to work with ember data. But this does fix the issue of setting the value when the component is tearing down. |
Thanks! On Wed, Mar 9, 2016 at 11:18 AM, Robert DeLuca notifications@github.com
|
I think this issue extends to another case -- a record that hasn't finished loading. In the case that you iterate over a hasMany relationship in the template, it'll start to render the template while the model is in |
Experiencing the same as you ( @Asherlc ) on this, did you happen to solve it? |
Interesting, can we open another issue to track this? And an ember-twiddle/repo project for these kinds of things are massively beneficial :D |
On master, if a model's attribute is bound to the value of the select, you set a default value with
selected=true
, and you destroy/rollback a new model, it will trigger aThis does not occur in 2.0.2.
Test case project: https://github.com/kmiyashiro/xselect-example
The text was updated successfully, but these errors were encountered: