dockview-react 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-react
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
  }
@@ -11600,6 +11600,10 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
11600
11600
  const disposable = api.onDidTitleChange((event) => {
11601
11601
  setTitle(event.title);
11602
11602
  });
11603
+ // Depending on the order in which React effects are run, the title may already be out of sync (cf. issue #1003).
11604
+ if (title !== api.title) {
11605
+ setTitle(api.title);
11606
+ }
11603
11607
  return () => {
11604
11608
  disposable.dispose();
11605
11609
  };