-
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.
Support React 19 in App and Pages router (#65058)
Closes NEXT-3218 --------- Co-authored-by: Jiachi Liu <inbox@huozhi.im>
- Loading branch information
Showing
547 changed files
with
393,733 additions
and
453,016 deletions.
There are no files selected for viewing
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
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
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
4 changes: 3 additions & 1 deletion
4
...ustom-transforms/tests/errors/react-server-components/server-graph/react-dom-api/input.js
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
3 changes: 2 additions & 1 deletion
3
...stom-transforms/tests/errors/react-server-components/server-graph/react-dom-api/output.js
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
35 changes: 18 additions & 17 deletions
35
...-transforms/tests/errors/react-server-components/server-graph/react-dom-api/output.stderr
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 |
---|---|---|
@@ -1,48 +1,49 @@ | ||
|
||
x You're importing a component that needs findDOMNode. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default. | ||
x You're importing a component that needs flushSync. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default. | ||
| Learn more: https://nextjs.org/docs/getting-started/react-essentials | ||
| | ||
| | ||
,-[input.js:1:1] | ||
1 | import { findDOMNode, flushSync, unstable_batchedUpdates } from 'react-dom' | ||
: ^^^^^^^^^^^ | ||
1 | import { flushSync, unstable_batchedUpdates } from 'react-dom' | ||
: ^^^^^^^^^ | ||
`---- | ||
|
||
x You're importing a component that needs flushSync. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default. | ||
x You're importing a component that needs unstable_batchedUpdates. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by | ||
| default. | ||
| Learn more: https://nextjs.org/docs/getting-started/react-essentials | ||
| | ||
| | ||
,-[input.js:1:1] | ||
1 | import { findDOMNode, flushSync, unstable_batchedUpdates } from 'react-dom' | ||
: ^^^^^^^^^ | ||
1 | import { flushSync, unstable_batchedUpdates } from 'react-dom' | ||
: ^^^^^^^^^^^^^^^^^^^^^^^ | ||
`---- | ||
|
||
x You're importing a component that needs unstable_batchedUpdates. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by | ||
| default. | ||
x You're importing a component that needs useActionState. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default. | ||
| Learn more: https://nextjs.org/docs/getting-started/react-essentials | ||
| | ||
| | ||
,-[input.js:1:1] | ||
1 | import { findDOMNode, flushSync, unstable_batchedUpdates } from 'react-dom' | ||
: ^^^^^^^^^^^^^^^^^^^^^^^ | ||
,-[input.js:2:1] | ||
2 | | ||
3 | import { useActionState } from 'react' | ||
: ^^^^^^^^^^^^^^ | ||
`---- | ||
|
||
x You're importing a component that needs useFormStatus. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default. | ||
| Learn more: https://nextjs.org/docs/getting-started/react-essentials | ||
| | ||
| | ||
,-[input.js:2:1] | ||
2 | | ||
3 | import { useFormStatus, useFormState } from 'react-dom' | ||
,-[input.js:4:1] | ||
4 | | ||
5 | import { useFormStatus, useFormState } from 'react-dom' | ||
: ^^^^^^^^^^^^^ | ||
`---- | ||
|
||
x You're importing a component that needs useFormState. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default. | ||
| Learn more: https://nextjs.org/docs/getting-started/react-essentials | ||
| | ||
| | ||
,-[input.js:2:1] | ||
2 | | ||
3 | import { useFormStatus, useFormState } from 'react-dom' | ||
,-[input.js:4:1] | ||
4 | | ||
5 | import { useFormStatus, useFormState } from 'react-dom' | ||
: ^^^^^^^^^^^^ | ||
`---- |
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
Oops, something went wrong.