Skip to content

Commit b143b85

Browse files
committed
feat: add link
1 parent 10b691a commit b143b85

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

modernjs-ssr-data-loader/host/src/entry-one/routes/nested-routes/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
import { Link } from '@modern-js/runtime/router';
2+
13
const Index = () => (
24
<div className="container-box">
5+
<a href='http://localhost:3062/entry-one/nested-routes/pathname'> click to jump remote page</a>
36
<h1>nested-routes page</h1>
47
</div>
58
);

modernjs-ssr-data-loader/remote/src/routes/a/page.data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const loader = async (): Promise<ProfileData> => {
55
const msg = await new Promise<string>((resolve) => {
66
setTimeout(() => {
77
resolve('page/a');
8-
}, 1000);
8+
}, 0);
99
});
1010
console.log('msg', msg);
1111
return {

modernjs-ssr-data-loader/remote/src/routes/page.data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const loader = async (): Promise<ProfileData> => {
55
const msg = await new Promise<string>((resolve) => {
66
setTimeout(() => {
77
resolve('hello world333');
8-
}, 1000);
8+
}, 0);
99
});
1010
return {
1111
message: msg,

0 commit comments

Comments
 (0)