Activity Forums Salesforce® Discussions What is the use of ' $A.enqueueAction' in lightning component in Salesforce?

  • Nikita

    Member
    August 27, 2019 at 11:17 am

    Hi Yogesh,

    $A.enqueueAction(action) adds the server-side controller action to the queue of actions to be executed. All actions that are enqueued will run at the end of the event loop. Rather than sending a separate request for each individual action, the framework processes the event chain and batches the actions in the queue into one request. The actions are asynchronous and have callbacks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos