Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
enqueueAction()
The batching of actions is also known as boxcar’ing, similar to a train that couples boxcars together.
The framework uses a stack to keep track of the actions to send to the server. When the browser finishes processing events and JavaScript on the client, the enqueued actions on the stack are sent to the server in a batch.
Signature
enqueueAction (Action action, Boolean background)
Parameters
- action
- Type: Action
- The action to enqueue.
- background
- Type: Boolean
- Deprecated. Do not use.