code: function () {
        var state = Immutable.fromJS(this.getInitialState());
        if (this.state) {
          this.state = this.state.clear();
          this.state = this.state.merge(state);
        } else {
          this.state = state;
        }
        this.emitReset();
      }
docs: .resetState() :void