-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle directives by traversing tokens
- Loading branch information
Showing
5 changed files
with
36 additions
and
42 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...ransforms/__testfixtures__/next-async-request-api-dynamic-props/access-props-21.input.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* this is a comment */ | ||
'use client' | ||
export default function Page(props: { | ||
params: any | ||
}): JSX.Element { | ||
return <div {...props.params} /> | ||
} |
9 changes: 9 additions & 0 deletions
9
...ansforms/__testfixtures__/next-async-request-api-dynamic-props/access-props-21.output.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* this is a comment */ | ||
'use client'; | ||
import { use } from "react"; | ||
export default function Page(props: { | ||
params: Promise<any> | ||
}): JSX.Element { | ||
const params = use(props.params); | ||
return <div {...params} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters