Activity Forums Salesforce® Discussions What is $enqueueAction in Salesforce?

  • Kirandeep

    Member
    April 7, 2020 at 2:45 PM

    $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.

  • [adinserter block='9']
  • Anuj

    Member
    April 8, 2020 at 1:58 PM

    Hi Aditya,
    enqueueAction(action) sends the request the server. More precisely, it adds the call to the queue of asynchronous server calls. That queue is an optimization feature of Lightning.

Log In to reply.