Namespace

status

jsonapi-vuex.status

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.

View Source lib.js, line 552

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

View Source lib.js, line 590

The status ID for this function.

integer