Skip to content

Commit 99688f3

Browse files
committed
Update next-custom-transforms test fixtures
To test "next/root-params" instead of "unstable_rootParams"
1 parent 357f6be commit 99688f3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/next-custom-transforms/tests/errors/react-server-components/client-graph/root-params/input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* This is a comment.
77
*/
88

9-
import { unstable_rootParams } from 'next/server'
9+
import { lang } from 'next/root-params'
1010

1111
export default function () {
1212
return null

crates/next-custom-transforms/tests/errors/react-server-components/client-graph/root-params/output.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'use strict';
33
/**
44
* This is a comment.
5-
*/ import { unstable_rootParams } from 'next/server';
5+
*/ import { lang } from 'next/root-params';
66
export default function() {
77
return null;
88
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
x You're importing a component that needs "unstable_rootParams". That only works in a Server Component which is not supported in the pages/ directory. Read more: https://nextjs.org/docs/app/
2-
| building-your-application/rendering/server-components
1+
x You're importing a component that needs "next/root-params". That only works in a Server Component which is not supported in the pages/ directory. Read more: https://nextjs.org/docs/app/building-
2+
| your-application/rendering/server-components
33
|
44
|
55
,-[input.js:9:1]
66
8 |
7-
9 | import { unstable_rootParams } from 'next/server'
8-
: ^^^^^^^^^^^^^^^^^^^
7+
9 | import { lang } from 'next/root-params'
8+
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
99
`----

0 commit comments

Comments
 (0)