Namespace: status

pinia-jsonapi.status

A class for tracking the status of actions.

Note - an instance of this class is exported as status from pinia-jsonapi, so it does not need to be used directly.

Source:

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
Source:
Returns:

The status ID for this function.

Type
integer