Closed justinbmeyer closed 6 years ago
for can-kefir, I'm working around this problem by only throwing events on a change
if an observation is bound, but has a dependency change, something is wrong.
Example:
new Observation(function(){
return todoConnection.store.itemsCount + todo.age
})
I bet this is solved by can-queues
If a fast-path-able observable, when initially bound, immediately fires events, this will cause the internal observation to be added to the update queue.
However, fast-path will be detected. When
.start()
is called by theupdateQueue
, there won't be a new value.One (not possible) solution would to somehow track events by those objects ... so that we could use those events to update the ScopeDataKey accordingly.
Another solution is to somehow check if the observation is queued (
needsUpdate=true
... and then to not fast-path because the binding seemed to cause events to be fired).Another solution would be cache
this.value
asthis.newVal
.