ydb-components-material 0.1.207 → 0.1.209

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.
@@ -514,7 +514,7 @@ var FileItem = function FileItem(_ref) {
514
514
  return k + 1;
515
515
  });
516
516
  setIsShowSignPage(true);
517
- saveStorage();
517
+ // saveStorage()
518
518
  };
519
519
 
520
520
  // 签章
@@ -1095,7 +1095,9 @@ var FileItem = function FileItem(_ref) {
1095
1095
  useEffect(function () {
1096
1096
  try {
1097
1097
  var stored = localStorage.getItem(fileId);
1098
- if (stored) {
1098
+ // 当前文件已处于 loading 中时,不再重复发起签批结果轮询
1099
+ // 注意:loading 不进依赖数组,否则轮询把 loading 置为 true 后 effect 重跑会清掉定时器
1100
+ if (stored && !loading) {
1099
1101
  console.log('stored---', stored);
1100
1102
  var _JSON$parse = JSON.parse(stored),
1101
1103
  contrId = _JSON$parse.contractId,
@@ -520,7 +520,7 @@ var FileItem = function FileItem(_ref) {
520
520
  return k + 1;
521
521
  });
522
522
  setIsShowSignPage(true);
523
- saveStorage();
523
+ // saveStorage()
524
524
  };
525
525
 
526
526
  // 签章
@@ -1101,7 +1101,9 @@ var FileItem = function FileItem(_ref) {
1101
1101
  (0, _react.useEffect)(function () {
1102
1102
  try {
1103
1103
  var stored = localStorage.getItem(fileId);
1104
- if (stored) {
1104
+ // 当前文件已处于 loading 中时,不再重复发起签批结果轮询
1105
+ // 注意:loading 不进依赖数组,否则轮询把 loading 置为 true 后 effect 重跑会清掉定时器
1106
+ if (stored && !loading) {
1105
1107
  console.log('stored---', stored);
1106
1108
  var _JSON$parse = JSON.parse(stored),
1107
1109
  contrId = _JSON$parse.contractId,
@@ -101,7 +101,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
101
101
  packageName = 'ydb-components-material';
102
102
  }
103
103
  if (version === void 0) {
104
- version = '0.1.207';
104
+ version = '0.1.209';
105
105
  }
106
106
  if (basicLibraryVersion === void 0) {
107
107
  basicLibraryVersion = {
@@ -106,7 +106,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
106
106
  packageName = 'ydb-components-material';
107
107
  }
108
108
  if (version === void 0) {
109
- version = '0.1.207';
109
+ version = '0.1.209';
110
110
  }
111
111
  if (basicLibraryVersion === void 0) {
112
112
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.207",
3
+ "version": "0.1.209",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -103,10 +103,10 @@
103
103
  },
104
104
  "componentConfig": {
105
105
  "isComponentLibrary": true,
106
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.207/build/lowcode/assets-prod.json"
106
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.209/build/lowcode/assets-prod.json"
107
107
  },
108
108
  "lcMeta": {
109
109
  "type": "component"
110
110
  },
111
- "homepage": "https://unpkg.com/ydb-components-material@0.1.207/build/index.html"
111
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.209/build/index.html"
112
112
  }