This is really exciting. This change allows you to look up computed properties in Ember without .get!
#ItsHappeninghttps://twitter.com/chancancode/status/944653027528417280 …
-
-
Replying to @wycats
What would be nice is automatic dependency tracking on computed properties, so every get automatically gets added as a dependency during compilation.
2 replies 0 retweets 0 likes -
It's very unlikely/impossible. What if I did `this.get(someVariable)`, i.e not use string literals? You can make it even more complicated and assume that this value isn't known until runtime.
1 reply 0 retweets 0 likes -
Replying to @maskedwarrior @wycats
Yes, but it could be based on best effort. Don’t make it mandatory, though.
1 reply 0 retweets 0 likes -
I agree that the current API could be improved, but I think that would introduce more complications than advantages. Besides, maybe not everything that you .get is something you want to observe?
1 reply 0 retweets 0 likes
We tried out automatic dependency tracking in Glimmer.js. It works reliably but is a bit of a performance regression. We have to work that out before landing something like it in Ember because it's such a hot path.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.