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
If foo.length and bar.length were to change together in a batch, and stay the same, this helper would be called twice and cause unnecessary updating of the DOM.
The solution is to create a can.compute() that represents if .fn() or .inverse() should be called. For example:
Related to #1412.
If
eq
is used like:If foo.length and bar.length were to change together in a batch, and stay the same, this helper would be called twice and cause unnecessary updating of the DOM.
The solution is to create a
can.compute()
that represents if.fn()
or.inverse()
should be called. For example:This way,
eq
is only called when the result ofcallFn
changes.The text was updated successfully, but these errors were encountered: