Skip to content

Commit 2a6ff5f

Browse files
committed
test app
Fix bad modRequest in flight entry manifest (#68888) While going through the logic of flight manifest, found the `modRequest` sometimes accidentally become `"undefined"` string due to composing with another potential undefined value. This caused extra traversal, fixing this will improve a bit on the performance. test app
1 parent 15aeb92 commit 2a6ff5f

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use server'
2+
3+
export async function action() {
4+
return 'hello'
5+
}
6+
7+
export async function unusedExportedAction() {
8+
return 'unused-exported-action'
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function Layout({ children }) {
2+
return (
3+
<html>
4+
<body>{children}</body>
5+
</html>
6+
)
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
'use client'
2+
3+
import { useState } from 'react'
4+
import { action } from './actions'
5+
6+
export default function Page() {
7+
const [text, setText] = useState('initial')
8+
return (
9+
<div>
10+
<button
11+
id="action-1"
12+
onClick={async () => {
13+
setText(await action())
14+
}}
15+
>
16+
Action 1
17+
</button>
18+
<span>{text}</span>
19+
</div>
20+
)
21+
}

0 commit comments

Comments
 (0)