Skip to content

Commit 276b05b

Browse files
ScriptedAlchemy2heal1claudecursoragent
committed
App router share filter (#3745)
Co-authored-by: Hanric <[email protected]> Co-authored-by: Claude <[email protected]> Co-authored-by: Cursor Agent <[email protected]>
1 parent e2ed2e7 commit 276b05b

File tree

12 files changed

+1753
-1885
lines changed

12 files changed

+1753
-1885
lines changed

apps/runtime-demo/3008-runtime-remote/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"preview": "rsbuild preview"
99
},
1010
"dependencies": {
11-
"@module-federation/enhanced": "workspace:*",
12-
"react": "^18.3.1",
13-
"react-dom": "^18.3.1"
11+
"@module-federation/enhanced": "workspace:*"
1412
},
1513
"devDependencies": {
1614
"@rsbuild/core": "^1.3.21",

packages/bridge/bridge-react/src/lazy/AwaitDataFetch.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export function AwaitDataFetch<T>({
9393
}: AwaitProps<T>) {
9494
const dataRef = useRef<T | undefined>(undefined);
9595
const data = dataRef.current || resolve;
96-
const getData = isPromise(data) ? fetchData(data, dataRef) : () => data;
96+
const getData = isPromise(data)
97+
? fetchData(data as Promise<T>, dataRef)
98+
: () => data;
9799

98100
return (
99101
<AwaitSuspense

packages/bridge/bridge-react/src/lazy/createLazyComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export function createLazyComponent<T, E extends keyof T>(
308308
injectScript,
309309
});
310310

311-
const Com = m[exportName] as React.FC<ComponentType>;
311+
const Com = m[exportName as string] as React.FC<ComponentType>;
312312
if (exportName in m && typeof Com === 'function') {
313313
return {
314314
default: (props: Omit<ComponentType, 'key'> & { mfData?: unknown }) => (

packages/chrome-devtools/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
"@module-federation/sdk": "workspace:*",
6060
"ahooks": "^3.7.10",
6161
"dagre": "^0.8.5",
62-
"react": "~19.0.0",
63-
"react-dom": "~19.0.0",
62+
"react": "^18.3.1",
63+
"react-dom": "^18.3.1",
6464
"reactflow": "11.11.4"
6565
},
6666
"devDependencies": {
@@ -76,8 +76,8 @@
7676
"@types/dagre": "^0.7.52",
7777
"@types/jest": "~29.2.4",
7878
"@types/node": "~20.12.12",
79-
"@types/react": "~19.0.0",
80-
"@types/react-dom": "~19.0.0",
79+
"@types/react": "^18.3.11",
80+
"@types/react-dom": "^18.3.1",
8181
"lint-staged": "~13.1.0",
8282
"prettier": "~3.3.3",
8383
"rimraf": "~6.0.1",

packages/data-prefetch/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@
7979
"@types/fs-extra": "9.0.6",
8080
"@types/jest": "^29.5.11",
8181
"@types/node": "^17.0.45",
82-
"@types/react": "~19.0.0",
82+
"@types/react": "^18.3.11",
8383
"jest": "^29.7.0",
8484
"jest-environment-jsdom": "^29.7.0",
8585
"minimist": "^1.2.8",
86-
"react": "19.0.0",
87-
"react-dom": "19.0.0",
86+
"react": "^18.3.1",
87+
"react-dom": "^18.3.1",
8888
"react-router": "^6.21.3",
8989
"react-test-renderer": "^18.2.0",
9090
"ts-jest": "29.0.1",

packages/modernjs/src/ssr-runtime/SSRLiveReload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function SSRLiveReload() {
1+
export function SSRLiveReload(): JSX.Element | null {
22
if (process.env.NODE_ENV !== 'development') {
33
return null;
44
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Monitor script for CI status
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)