@lvce-editor/status-bar-worker 1.15.0 → 2.0.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.
@@ -1182,7 +1182,7 @@ const RenderItems = 4;
1182
1182
  const RenderIncremental = 11;
1183
1183
 
1184
1184
  const modules = [isEqual];
1185
- const numbers = [RenderItems];
1185
+ const numbers = [RenderIncremental];
1186
1186
 
1187
1187
  const diff = (oldState, newState) => {
1188
1188
  const diffResult = [];
@@ -1894,10 +1894,14 @@ const getStatusBarVirtualDom = (statusBarItemsLeft, statusBarItemsRight) => {
1894
1894
 
1895
1895
  const renderItems = (oldState, newState) => {
1896
1896
  const {
1897
+ initial,
1897
1898
  statusBarItemsLeft,
1898
1899
  statusBarItemsRight,
1899
1900
  uid
1900
1901
  } = newState;
1902
+ if (initial) {
1903
+ return [SetDom2, uid, []];
1904
+ }
1901
1905
  const dom = getStatusBarVirtualDom(statusBarItemsLeft, statusBarItemsRight);
1902
1906
  return [SetDom2, uid, dom];
1903
1907
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/status-bar-worker",
3
- "version": "1.15.0",
3
+ "version": "2.0.0",
4
4
  "description": "Status Bar Worker",
5
5
  "repository": {
6
6
  "type": "git",