-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Observing array using array.[]
is not working in v1.13.11
#12329
Comments
array.[]
is not workingarray.[]
is not working in 1.13.11
array.[]
is not working in 1.13.11array.[]
is not working in v1.13.11
nothing appears to be consuming |
also |
@stefanpenner |
Is this a case of too aggressive optimization? I have an observer observing a computed property, is that not enough to trigger a consumption? |
A simpler example: http://ember-twiddle.com/b663e28c60942f4c3d25 |
yes, but |
@stefanpenner So, the takeaway is you cannot observe a computed property unless that computed property is consumed elsewhere? |
Yes correct, think of them as Schrödingers Computed Properties. Before consumed, the state is undefined, and as such no state change notification is possible. The laziness invariant is actually quite nice, but results in the single caveat we just discussed. |
@stefanpenner So what's the correct way to do this then? Am I going to have to |
@devinus or you can call |
Reproduced here: http://ember-twiddle.com/b663e28c60942f4c3d25
The text was updated successfully, but these errors were encountered: