@module-federation/modern-js 0.0.0-next-20250709075526 → 0.0.0-next-20250709090625
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.
|
@@ -70,7 +70,7 @@ const DefaultErrorElement = (_data) => /* @__PURE__ */ (0, import_jsx_runtime.js
|
|
|
70
70
|
children: "Error"
|
|
71
71
|
});
|
|
72
72
|
function AwaitDataFetch({ resolve, loading = DefaultLoading, errorElement = DefaultErrorElement, children, params }) {
|
|
73
|
-
const dataRef = (0, import_react.useRef)(
|
|
73
|
+
const dataRef = (0, import_react.useRef)();
|
|
74
74
|
const data = dataRef.current || resolve;
|
|
75
75
|
const getData = isPromise(data) ? fetchData(data, dataRef) : () => data;
|
|
76
76
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AwaitSuspense, {
|
|
@@ -56,7 +56,7 @@ var DefaultErrorElement = function(_data) {
|
|
|
56
56
|
};
|
|
57
57
|
function AwaitDataFetch(param) {
|
|
58
58
|
var resolve = param.resolve, _param_loading = param.loading, loading = _param_loading === void 0 ? DefaultLoading : _param_loading, _param_errorElement = param.errorElement, errorElement = _param_errorElement === void 0 ? DefaultErrorElement : _param_errorElement, children = param.children, params = param.params;
|
|
59
|
-
var dataRef = useRef(
|
|
59
|
+
var dataRef = useRef();
|
|
60
60
|
var data = dataRef.current || resolve;
|
|
61
61
|
var getData = isPromise(data) ? fetchData(data, dataRef) : function() {
|
|
62
62
|
return data;
|
|
@@ -36,7 +36,7 @@ const DefaultErrorElement = (_data) => /* @__PURE__ */ _jsx("div", {
|
|
|
36
36
|
children: "Error"
|
|
37
37
|
});
|
|
38
38
|
function AwaitDataFetch({ resolve, loading = DefaultLoading, errorElement = DefaultErrorElement, children, params }) {
|
|
39
|
-
const dataRef = useRef(
|
|
39
|
+
const dataRef = useRef();
|
|
40
40
|
const data = dataRef.current || resolve;
|
|
41
41
|
const getData = isPromise(data) ? fetchData(data, dataRef) : () => data;
|
|
42
42
|
return /* @__PURE__ */ _jsx(AwaitSuspense, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function SSRLiveReload(): JSX.Element | null;
|
|
1
|
+
export declare function SSRLiveReload(): import("react").JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/modern-js",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20250709090625",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -120,12 +120,12 @@
|
|
|
120
120
|
"@swc/helpers": "^0.5.17",
|
|
121
121
|
"node-fetch": "~3.3.0",
|
|
122
122
|
"react-error-boundary": "4.1.2",
|
|
123
|
-
"@module-federation/rsbuild-plugin": "0.0.0-next-
|
|
124
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
125
|
-
"@module-federation/runtime": "0.0.0-next-
|
|
126
|
-
"@module-federation/node": "0.0.0-next-
|
|
127
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
128
|
-
"@module-federation/cli": "0.0.0-next-
|
|
123
|
+
"@module-federation/rsbuild-plugin": "0.0.0-next-20250709090625",
|
|
124
|
+
"@module-federation/enhanced": "0.0.0-next-20250709090625",
|
|
125
|
+
"@module-federation/runtime": "0.0.0-next-20250709090625",
|
|
126
|
+
"@module-federation/node": "0.0.0-next-20250709090625",
|
|
127
|
+
"@module-federation/sdk": "0.0.0-next-20250709090625",
|
|
128
|
+
"@module-federation/cli": "0.0.0-next-20250709090625"
|
|
129
129
|
},
|
|
130
130
|
"devDependencies": {
|
|
131
131
|
"@modern-js/core": "2.67.5",
|
|
@@ -135,9 +135,7 @@
|
|
|
135
135
|
"@modern-js/module-tools": "2.67.6",
|
|
136
136
|
"@modern-js/runtime": "2.67.6",
|
|
137
137
|
"@modern-js/tsconfig": "2.67.6",
|
|
138
|
-
"@
|
|
139
|
-
"@types/react-dom": "^18.3.1",
|
|
140
|
-
"@module-federation/manifest": "0.0.0-next-20250709075526"
|
|
138
|
+
"@module-federation/manifest": "0.0.0-next-20250709090625"
|
|
141
139
|
},
|
|
142
140
|
"peerDependencies": {
|
|
143
141
|
"react": ">=17",
|