dockview-react 7.0.2 → 7.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/react.js CHANGED
@@ -99,12 +99,12 @@ var ReactPart = /** @class */ (function () {
99
99
  if (this.disposed) {
100
100
  throw new Error('invalid operation: resource is already disposed');
101
101
  }
102
- if (!this.componentInstance) {
103
- // if the component is yet to be mounted store the props
104
- this._initialProps = __assign(__assign({}, this._initialProps), props);
102
+ if (this.componentInstance) {
103
+ this.componentInstance.update(props);
105
104
  }
106
105
  else {
107
- this.componentInstance.update(props);
106
+ // if the component is yet to be mounted store the props
107
+ this._initialProps = __assign(__assign({}, this._initialProps), props);
108
108
  }
109
109
  };
110
110
  ReactPart.prototype.createPortal = function () {