function setState(state) {
    this.runAsync(null, v => {
      v._trigger = false;
      v._runtime.setState(state);
    }, v => {
      v._trigger = true;
    });
    return this;
  }
Sets the current view state and updates the view by invoking run.
@param {object} state - A state object containing signal and/or
  data set values, following the format used by the getState method.
@return {View} - This view instance.