re-evaluation only for change events (but still queue for dirty) #4

mbest opened this Issue May 24, 2012 · 0 comments


None yet
1 participant

mbest commented May 24, 2012

If/when SteveSanderson/knockout#458 becomes part of Knockout, this plugin will need to be modified to the cases where a computed observable is re-evaluated, but its value doesn't change (and thus it doesn't trigger a change event).

My idea is that the Deferred Updates plugin will watch for both dirty and change events for computed dependencies. The dirty event will add the computed to the queue, but only a change event will actually trigger re-evaluation (by setting _needsEvaluation = true).

mbest closed this May 25, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment