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
By default, then(), catch() and finally() function wraps callback function with $A.getCallback(). Lax should provide an ability to avoid that.
There are can be situations where it is redundant, for example when callback doesn't change any component attribute and doesn't manipulate DOM.
ruslan-kurchenko
changed the title
Ability to set action callback without Aura context wrapper - $A.getCallback()
An ability to set action callback without Aura context wrapper - $A.getCallback()Jan 5, 2018
By default,
then()
,catch()
andfinally()
function wraps callback function with$A.getCallback()
.Lax
should provide an ability to avoid that.There are can be situations where it is redundant, for example when callback doesn't change any component attribute and doesn't manipulate DOM.
An example of usage:
API:
then(callback, isAuraContext)
catch(callback, isAuraContext)
finally(callback, isAuraContext)
isAuraContext
- istrue
by defaultThe text was updated successfully, but these errors were encountered: