dockview 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.
package/dist/dockview.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview
3
- * @version 4.9.0
3
+ * @version 4.10.0
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -10307,8 +10307,8 @@
10307
10307
  accessor: this,
10308
10308
  isVisible: true,
10309
10309
  });
10310
- this.registerPanel(view);
10311
10310
  this.doAddGroup(view, relativeLocation, options.size);
10311
+ this.registerPanel(view);
10312
10312
  this.doSetGroupActive(view);
10313
10313
  return view;
10314
10314
  }
@@ -11657,6 +11657,10 @@
11657
11657
  const disposable = api.onDidTitleChange((event) => {
11658
11658
  setTitle(event.title);
11659
11659
  });
11660
+ // Depending on the order in which React effects are run, the title may already be out of sync (cf. issue #1003).
11661
+ if (title !== api.title) {
11662
+ setTitle(api.title);
11663
+ }
11660
11664
  return () => {
11661
11665
  disposable.dispose();
11662
11666
  };