-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Computed Property Based on Nested Fragment #178
Comments
One additional piece of info: |
Hey @lmcardle what version of ember-data are you on? Since we're using Ember.ArrayProxy, I suspect this is related to: emberjs/ember.js#12475 . If I understand that issue properly, you should be able to use sortedLevel3: Ember.computed('[email protected].[]', function() {
// do something
// return sorted level 3 list
} |
I believe @workmanw is correct that this is the same issue as emberjs/ember.js#12475. The fragment array base class does the same thing as Closing since this is a bug in Ember. The commenters on that issue reported success with adding the |
I have a fragment that looks like this:
Within a template, if I loop over level's 2 and 3 together, I get live updating (i.e. it works as expected):
If I have an action and remove one of the y's, the list displayed is updated with one less y.
I need to move this to the controller in a computed property. However, I can't seem to get the computed property to re-fire when one of the y's gets removed. This is what I have currently:
While the above works the first time the page is loaded, the sortedLevel3 function never gets called a second time once one of the items in level3's array is removed. Any idea what I am missing?
The text was updated successfully, but these errors were encountered: