@cloud-app-dev/vidc 2.0.0-alpha.32 → 2.0.0-alpha.33
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/es/LoaderApp/index.d.ts +0 -1
- package/es/LoaderApp/index.js +0 -14
- package/package.json +1 -1
package/es/LoaderApp/index.d.ts
CHANGED
package/es/LoaderApp/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _useUpdateEffect from "ahooks/es/useUpdateEffect";
|
|
2
1
|
import _uuid from "@cloud-app-dev/utils/es/uuid";
|
|
3
2
|
|
|
4
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -110,19 +109,6 @@ function LoaderApp(_ref) {
|
|
|
110
109
|
}
|
|
111
110
|
};
|
|
112
111
|
}, []);
|
|
113
|
-
|
|
114
|
-
_useUpdateEffect(function () {
|
|
115
|
-
var currentId = appProps.currentId,
|
|
116
|
-
tabId = appProps.tabId;
|
|
117
|
-
|
|
118
|
-
if (currentId === tabId && loadedAppRef.current) {
|
|
119
|
-
var props = Object.assign(Object.assign({}, appProps), {
|
|
120
|
-
container: domRef.current
|
|
121
|
-
});
|
|
122
|
-
loadedAppRef.current.update && loadedAppRef.current.update(props);
|
|
123
|
-
}
|
|
124
|
-
}, [appProps.currentId, appProps.tabId, appProps.updateTime]);
|
|
125
|
-
|
|
126
112
|
return /*#__PURE__*/React.createElement("main", {
|
|
127
113
|
ref: domRef,
|
|
128
114
|
className: "loaded-app-layout ".concat(appConfig.routerPrefix, "-").concat(id),
|