Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4830

How do we stop Ember recompute chains?

$
0
0

@ofersadgat wrote:

I have a property which is based on time and I have properties which depend on that property. The problem is that the whole tree gets recomputed every time the time property changes. In order to get around that problem I have introduced observers:

https://ember-twiddle.com/13b0dd883d6a37b6471489f498cc44ef?openFiles=controllers.application.js%2C

Is that the right way of accomplishing this? Further, why is it that Ember itself doesnt halt the computed chain if it notices that the computed value is === the cacheValue. Yes, two identical objects will still incur a recompute, but that should be a fast way of shortcutting a lot of recompute logic, right?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles