dockview-react 4.9.0 → 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.9.0
3
+ * @version 4.10.0
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -10303,8 +10303,8 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
10303
10303
  accessor: this,
10304
10304
  isVisible: true,
10305
10305
  });
10306
- this.registerPanel(view);
10307
10306
  this.doAddGroup(view, relativeLocation, options.size);
10307
+ this.registerPanel(view);
10308
10308
  this.doSetGroupActive(view);
10309
10309
  return view;
10310
10310
  }
@@ -11630,6 +11630,10 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
11630
11630
  const disposable = api.onDidTitleChange((event) => {
11631
11631
  setTitle(event.title);
11632
11632
  });
11633
+ // Depending on the order in which React effects are run, the title may already be out of sync (cf. issue #1003).
11634
+ if (title !== api.title) {
11635
+ setTitle(api.title);
11636
+ }
11633
11637
  return () => {
11634
11638
  disposable.dispose();
11635
11639
  };