getState() {
      Logger.debug(`Getting entire state`);
      return this.state;
    }
Retrieves the previous state of the state tree.

This method returns the state as it was prior to the last update,
enabling comparison or rollback operations if needed.

@returns {Object} The previous state object.