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
  */
@@ -10306,8 +10306,8 @@ class GridviewComponent extends BaseGrid {
10306
10306
  accessor: this,
10307
10307
  isVisible: true,
10308
10308
  });
10309
- this.registerPanel(view);
10310
10309
  this.doAddGroup(view, relativeLocation, options.size);
10310
+ this.registerPanel(view);
10311
10311
  this.doSetGroupActive(view);
10312
10312
  return view;
10313
10313
  }
@@ -11633,6 +11633,10 @@ function useTitle(api) {
11633
11633
  const disposable = api.onDidTitleChange((event) => {
11634
11634
  setTitle(event.title);
11635
11635
  });
11636
+ // Depending on the order in which React effects are run, the title may already be out of sync (cf. issue #1003).
11637
+ if (title !== api.title) {
11638
+ setTitle(api.title);
11639
+ }
11636
11640
  return () => {
11637
11641
  disposable.dispose();
11638
11642
  };