dockview 4.7.1 → 4.10.0

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview
3
- * @version 4.7.1
3
+ * @version 4.10.0
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -10273,8 +10273,8 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
10273
10273
  accessor: this,
10274
10274
  isVisible: true,
10275
10275
  });
10276
- this.registerPanel(view);
10277
10276
  this.doAddGroup(view, relativeLocation, options.size);
10277
+ this.registerPanel(view);
10278
10278
  this.doSetGroupActive(view);
10279
10279
  return view;
10280
10280
  }
@@ -11623,6 +11623,10 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
11623
11623
  const disposable = api.onDidTitleChange((event) => {
11624
11624
  setTitle(event.title);
11625
11625
  });
11626
+ // Depending on the order in which React effects are run, the title may already be out of sync (cf. issue #1003).
11627
+ if (title !== api.title) {
11628
+ setTitle(api.title);
11629
+ }
11626
11630
  return () => {
11627
11631
  disposable.dispose();
11628
11632
  };