You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't use a pure computed immediately after its dependency (another pure computed in front of 2 observables) is updated. The returned value is outdated.
With a debugger, I see that the problematic pureComputed is asleep but not "isStale". Everything look fine otherwise. It is not disposed and has the correct subscription on its unique dependency.
I suppose that because of deferred updates, the pureComputed has not been notified yet that its dependency was updated.
executing ko.tasks.runEarly() after updating the pureComputed dependency fixes the issue.
I'll try to do a jsfiddle to spot the exact problem. But I wonder if it's a known issue to begin with? It's quite a deal breaker IMHO.
The text was updated successfully, but these errors were encountered:
Knockout 3.4 with ko.deferUpdates = true
I can't use a pure computed immediately after its dependency (another pure computed in front of 2 observables) is updated. The returned value is outdated.
With a debugger, I see that the problematic pureComputed is asleep but not "isStale". Everything look fine otherwise. It is not disposed and has the correct subscription on its unique dependency.
I suppose that because of deferred updates, the pureComputed has not been notified yet that its dependency was updated.
executing ko.tasks.runEarly() after updating the pureComputed dependency fixes the issue.
I'll try to do a jsfiddle to spot the exact problem. But I wonder if it's a known issue to begin with? It's quite a deal breaker IMHO.
The text was updated successfully, but these errors were encountered: