You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using {{#each item in filteredItems}} when filteredItems is defined with Ember.computed.filterBy causes contents to unnecessarily be removed and re-added when the dependent key changes, even if the item continues to pass the filter.
My use case is simply as shown in the JSBin. My views animate in and the dependent filter key is changing often. Additionally, these particular views are more complex and I'd prefer not to be frequently re-rendering them.
Some after a little bit of digging I discovered the issue is lies here:
I believe the reduced_computed does this because it have enough knowledge to know if which operation is necessary. However it seems like there should be a way to do this operation without unnecessary rerendering.
I'm opening to other alternatives, even ones that don't use arrayComputed.
The text was updated successfully, but these errors were encountered:
Seems to be the same as #4423 and possibly my own reduceComputed issue #9313
There seems to be an entire family of issues with array computed, I just tracked these down as well, #5268, #5558, #5319 which could be of relevance to both our problems.
I stated the PR #4724 to try to make arrayComputed/reduceComputed properties smarter, but I discovered that the way CP's are implemented is deeply flawed in some senses.
Then I open #4833 as a first step into refactor CPs, but I don't think that is going to make it anytime soon. I think that probably will be delayed until ember 2.0 and when the time comes CP's will be redone from scratch.
Yea, there does seem to be several issues relating to arrayComputed/reduceComputed. I think I'll close this infavor of @wagenet's "Cleanup ArrayComputed" issue.
Using
{{#each item in filteredItems}}
whenfilteredItems
is defined withEmber.computed.filterBy
causes contents to unnecessarily be removed and re-added when the dependent key changes, even if the item continues to pass the filter.Here is a JSBin that illustrates the problem: http://emberjs.jsbin.com/pelidogojiba/2/edit
My use case is simply as shown in the JSBin. My views animate in and the dependent filter key is changing often. Additionally, these particular views are more complex and I'd prefer not to be frequently re-rendering them.
Some after a little bit of digging I discovered the issue is lies here:
ember.js/packages/ember-runtime/lib/computed/reduce_computed.js
Lines 348 to 351 in 21156e0
I believe the reduced_computed does this because it have enough knowledge to know if which operation is necessary. However it seems like there should be a way to do this operation without unnecessary rerendering.
I'm opening to other alternatives, even ones that don't use
arrayComputed
.The text was updated successfully, but these errors were encountered: