You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/next-codemod/src/transforms/__testfixtures__/next-async-request-api-dynamic-apis/async-api-15.output.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ import { cookies } from "next/headers";
2
2
3
3
asyncfunctionMyComponent(){
4
4
functionasyncFunction(){
5
-
callSomething(/* TODO: please manually await this call, codemod cannot transform due to undetermined async scope */
5
+
callSomething(/* TODO: please manually await this call, if it's a server component, you can turn it to async function */
Copy file name to clipboardExpand all lines: packages/next-codemod/src/transforms/__testfixtures__/next-async-request-api-dynamic-apis/async-api-type-cast-02.output.js
+3-3
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ import {
6
6
}from'next/headers'
7
7
8
8
exportfunctionMyDraftComponent(){
9
-
if(/* TODO: please manually await this call, codemod cannot transform due to undetermined async scope */
9
+
if(/* TODO: please manually await this call, if it's a server component, you can turn it to async function */
10
10
draftMode().isEnabled){
11
11
returnnull
12
12
}
@@ -15,13 +15,13 @@ draftMode().isEnabled) {
15
15
}
16
16
17
17
exportfunctionMyCookiesComponent(){
18
-
constc=/* TODO: please manually await this call, codemod cannot transform due to undetermined async scope */
18
+
constc=/* TODO: please manually await this call, if it's a server component, you can turn it to async function */
19
19
cookies()
20
20
returnc.get('name')
21
21
}
22
22
23
23
exportfunctionMyHeadersComponent(){
24
-
consth=/* TODO: please manually await this call, codemod cannot transform due to undetermined async scope */
24
+
consth=/* TODO: please manually await this call, if it's a server component, you can turn it to async function */
0 commit comments