Newer Version Available
Action States
Call a server-side controller action from a client-side controller. The action can have
different states during processing.
The possible action states are:
- NEW
- The action was created but is not in progress yet
- RUNNING
- The action is in progress
- SUCCESS
- The action executed successfully
- ERROR
- The server returned an error
- INCOMPLETE
- The server didn’t return a response. The server might be down or the client might be offline. The framework guarantees that an action’s callback is always invoked as long as the component is valid. If the socket to the server is never successfully opened, or closes abruptly, or any other network error occurs, the XHR resolves and the callback is invoked with state equal to INCOMPLETE.
- ABORTED
- The action was aborted. This action state is deprecated. A callback for an aborted action is never executed so you can’t do anything to handle this state.