-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Chained Ember.computed.filterBy properties fail for updated records #2190
Comments
cc @hjdivad |
FWIW this issue is still in the latest beta 9. I updated the jsbin: http://emberjs.jsbin.com/fesofu/8/edit |
A first weird thing is if you use toggleProperty instead of push, it seems to work. see http://emberjs.jsbin.com/qexova/1/edit |
@sly7-7 yeah, any changes that happen locally either through a property The reason my example uses Yeah, I don't understand the behavior of |
Probably related to emberjs/ember.js#5319 and emberjs/ember.js#5268 |
aye, I have been replacing Em.computed.filterBy uses with the hand written computed properties to work around this |
I'm not sure if there is something to do in ember data for that case. |
I think this will be solved by the reduce computed removal in Ember |
This seems fixed by emberjs/ember.js#11513, closing. |
I have a controller that has two
Ember.computed.filterBy
properties. One depends on the output of the other. I've noticed that when data gets pushed in the store what changes the value that there filters operate on, I get incorrect results. If I manually code a computed property that delegates toEnumerable.filterBy
it works as expected.I've created a jsbin:
http://emberjs.jsbin.com/fesofu/5/edit
TO USE: click the tasks listed....I expect the two "Completed" counts to be the same. The "manually" computed value is correct but the other is incorrect.
The text was updated successfully, but these errors were encountered: