A class for tracking the status of actions.
Note - an instance of this class is exported as status
from jsonapi-vuex
,
so it does not need to be used directly.
Methods
# static ActionStatus#run() → {integer}
This method:
- Creates a new ID property in the class'
status
object. - Sets status to PENDING
- Calls the provided function
- Attaches then/catch blocks to the promise which will set status to SUCCESS/ERROR
The status ID for this function.
integer