@zat-design/sisyphus-react 3.13.15-beta.3 → 3.13.15-beta.5
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.
@@ -26,8 +26,7 @@ var ProStepItem = function ProStepItem(_ref) {
|
|
26
26
|
var _useStep = useStep(),
|
27
27
|
register = _useStep.register,
|
28
28
|
collapse = _useStep.collapse,
|
29
|
-
globalLazyLoad = _useStep.lazyLoad
|
30
|
-
unNotify = _useStep.unNotify;
|
29
|
+
globalLazyLoad = _useStep.lazyLoad;
|
31
30
|
var lazyLoad = stepLazyLoad !== null && stepLazyLoad !== void 0 ? stepLazyLoad : globalLazyLoad;
|
32
31
|
useEffect(function () {
|
33
32
|
// Schedule registration to avoid re-render issues
|
@@ -40,7 +39,6 @@ var ProStepItem = function ProStepItem(_ref) {
|
|
40
39
|
}, restProps));
|
41
40
|
}, 0);
|
42
41
|
return function () {
|
43
|
-
unNotify([id]);
|
44
42
|
clearTimeout(timeoutId);
|
45
43
|
};
|
46
44
|
}, [id, title, order, lazyLoad, restProps, register]);
|
@@ -34,8 +34,7 @@ var ProStepItem = function ProStepItem(_ref) {
|
|
34
34
|
var _useStep = (0, _index.useStep)(),
|
35
35
|
register = _useStep.register,
|
36
36
|
collapse = _useStep.collapse,
|
37
|
-
globalLazyLoad = _useStep.lazyLoad
|
38
|
-
unNotify = _useStep.unNotify;
|
37
|
+
globalLazyLoad = _useStep.lazyLoad;
|
39
38
|
var lazyLoad = stepLazyLoad !== null && stepLazyLoad !== void 0 ? stepLazyLoad : globalLazyLoad;
|
40
39
|
(0, _react.useEffect)(function () {
|
41
40
|
// Schedule registration to avoid re-render issues
|
@@ -48,7 +47,6 @@ var ProStepItem = function ProStepItem(_ref) {
|
|
48
47
|
}, restProps));
|
49
48
|
}, 0);
|
50
49
|
return function () {
|
51
|
-
unNotify([id]);
|
52
50
|
clearTimeout(timeoutId);
|
53
51
|
};
|
54
52
|
}, [id, title, order, lazyLoad, restProps, register]);
|