-
-
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
Using filterBy on PromiseManyArray doesn’t work as expected with Glimmer #4046
Comments
I think it has to do with your not updating the other side of the relationship. If you check out https://ember-twiddle.com/bc20d9b69cf1229b0bc5?numColumns=3&openFiles=application.controller.js%2Capplication.template.hbs%2Capplication.route.js, I agree though, that this behavior is confusing. Even more confusing that it seems to work on the initial render... |
@jgwhite Using the '.content' workaround make the thing working: https://ember-twiddle.com/c0338cd0424f658c60fa?numColumns=3&openFiles=application.controller.js%2Capplication.template.hbs%2Capplication.route.js |
@sly7-7 thanks, that’s a good tip. Still, it seems like this shouldn’t require any workarounds. |
Hmm, alos see, https://ember-twiddle.com/7e5df2d56a3f78f18e25?openFiles=application.controller.js%2Capplication.route.js, using ember 2.0.2, it is working well... |
@sly7-7 hmm… perhaps a change in the contract for observing enumerables? |
Yeah, it seems like there is also some issues with ember itself (see the referenced issue), but clearly difficult to find out the root cause |
This appears to be a problem in |
@jgwhite I believe you have closed this prematurely, I still believe this is an ED bug, emberjs/ember.js#12475 (comment) |
@runspired thanks for investigating further. Re-opening. |
I don't think data/addon/-private/system/many-array.js Line 187 in cf889b3
|
@fivetanley would setting length and calling that method be relatively straight forward single line things that ember data should be doing? Could these things be causing emberjs/ember.js#12475 ? |
@adam-knights my opinion from the feedback/investigation that I've done is that emberjs/ember.js#12475 is mostly if not entirely related to ED code issues that either originated around the time of Ember 2.0 or were pre-existing issues surfaced by changes in Ember around then. |
Investigating another issue in balinterdi/rarwe-code I see it happens with |
I'm closing, emberjs/ember.js#12908 seems to fix all the things. I just tried the twiddles with ember & ember-data canary, they are working well. @jgwhite Could you confirm please, and reopen if it does not fix your case ? |
Computed properties that filter a PromiseManyArray don’t re-render as expected when used in templates. See reproduction below:
https://ember-twiddle.com/7e5df2d56a3f78f18e25?numColumns=1&openFiles=application.controller.js%2C
Apologies for the lack of detail — still digging into exactly what’s going wrong here.
The text was updated successfully, but these errors were encountered: