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
In order to prevent useless updates of the DOM, it would be favorable if jidejs/ui/bind scheduled its updates on the browser render loop (using requestAnimationFrame).
This will require a few changes to Observable.computed to allow manual dependency management in addition to the automatic one (we need to calculate dependencies in an async callback).
The text was updated successfully, but these errors were encountered:
Turns out that there wasn't really much to change after all. By making the binding observable lazy, we make sure it is only ever computed (and its dependencies reevaluated) when we need to. Thus, we just need to delay that to the animation frame (using subscribe).
I'm leaving this open to expand it to the foreach binding where we need to buffer the changes of the ObservableList.
In order to prevent useless updates of the DOM, it would be favorable if jidejs/ui/bind scheduled its updates on the browser render loop (using requestAnimationFrame).
This will require a few changes to Observable.computed to allow manual dependency management in addition to the automatic one (we need to calculate dependencies in an async callback).
The text was updated successfully, but these errors were encountered: