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
  */
@@ -10277,8 +10277,8 @@
10277
10277
  accessor: this,
10278
10278
  isVisible: true,
10279
10279
  });
10280
- this.registerPanel(view);
10281
10280
  this.doAddGroup(view, relativeLocation, options.size);
10281
+ this.registerPanel(view);
10282
10282
  this.doSetGroupActive(view);
10283
10283
  return view;
10284
10284
  }
@@ -11604,6 +11604,10 @@
11604
11604
  const disposable = api.onDidTitleChange((event) => {
11605
11605
  setTitle(event.title);
11606
11606
  });
11607
+ // Depending on the order in which React effects are run, the title may already be out of sync (cf. issue #1003).
11608
+ if (title !== api.title) {
11609
+ setTitle(api.title);
11610
+ }
11607
11611
  return () => {
11608
11612
  disposable.dispose();
11609
11613
  };