lib/dispatcher.js
function getLibStateAccessor(libState) {
      /** The current state name */
      return { get actionName() {
          return libState.actionName;
        }
        /** Is in idle state (no more states to progress to) */
        , get isIdle() {
          return libState.isIdle;
        }
        /** State can be paused manually or via action dispatch or returning null/undefined from timeoutMS function */
        , get isPaused() {
          return libState.isPaused;
        }
        /** The epoch MS that the user was last active */
        , get lastActive() {
          return useFastStore ? fastState.lastActive : libState.lastActive;
        }
        /** Event information captured on the last recorded user action */
        , get lastEvent() {
          return useFastStore ? fastState.lastEvent : libState.lastEvent;
        }
        /** The timeoutID for the current scheduled next event if it exists */
        , get timeoutID() {
          return useFastStore ? fastState.timeoutID : libState.timeoutID;
        }
      };
    }
function getLibStateAccessor(libState) {
      /** The current state name */
      return { get actionName() {
          return libState.actionName;
        }
        /** Is in idle state (no more states to progress to) */
        , get isIdle() {
          return libState.isIdle;
        }
        /** State can be paused manually or via action dispatch or returning null/undefined from timeoutMS function */
        , get isPaused() {
          return libState.isPaused;
        }
        /** The epoch MS that the user was last active */
        , get lastActive() {
          return useFastStore ? fastState.lastActive : libState.lastActive;
        }
        /** Event information captured on the last recorded user action */
        , get lastEvent() {
          return useFastStore ? fastState.lastEvent : libState.lastEvent;
        }
        /** The timeoutID for the current scheduled next event if it exists */
        , get timeoutID() {
          return useFastStore ? fastState.timeoutID : libState.timeoutID;
        }
      };
    }
function getLibStateAccessor ( libState ) { /** The current state name */ return { get actionName ( ) { return libState . actionName ; } /** Is in idle state (no more states to progress to) */ , get isIdle ( ) { return libState . isIdle ; } /** State can be paused manually or via action dispatch or returning null/undefined from timeoutMS function */ , get isPaused ( ) { return libState . isPaused ; } /** The epoch MS that the user was last active */ , get lastActive ( ) { return useFastStore ? fastState . lastActive : libState . lastActive ; } /** Event information captured on the last recorded user action */ , get lastEvent ( ) { return useFastStore ? fastState . lastEvent : libState . lastEvent ; } /** The timeoutID for the current scheduled next event if it exists */ , get timeoutID ( ) { return useFastStore ? fastState . timeoutID : libState . timeoutID ; } } ; }
ABSTRACTS ACCESS TO STATE VIA GETTERS
ABSTRACTS ACCESS TO STATE VIA GETTERS