Skip to content

Commit 155b2c1

Browse files
committed
pkg(examples): Downgrade nextjs to 15 due to stackblitz node incompatibility
1 parent eae4fe4 commit 155b2c1

File tree

4 files changed

+46
-48
lines changed

4 files changed

+46
-48
lines changed

examples/nextjs/app/[userId]/layout.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import UserSelection from '@/components/todo/UserSelection';
44

55
export default async function TodoLayout(props: {
66
children: React.ReactNode;
7-
params?: Promise<{ userId: string }>;
7+
params: Promise<{ userId: string }>;
88
}) {
99
const params = await props.params;
1010
const { children } = props;
@@ -17,9 +17,7 @@ export default async function TodoLayout(props: {
1717
content="NextJS integration with Reactive Data Client"
1818
/>
1919

20-
<UserSelection
21-
userId={params?.userId ? Number(params.userId) : undefined}
22-
/>
20+
<UserSelection userId={Number(params.userId)} />
2321

2422
{children}
2523

examples/nextjs/package-lock.json

Lines changed: 42 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@types/react-dom": "19.2.2",
2525
"clsx": "^2.1.1",
2626
"core-js": "^3.40.0",
27-
"next": "16.0.0",
27+
"next": "^15.0.0",
2828
"react": "19.1.1",
2929
"react-dom": "19.1.1",
3030
"tar-fs": "^3.0.6",

examples/nextjs/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"moduleResolution": "node",
1818
"resolveJsonModule": true,
1919
"isolatedModules": true,
20-
"jsx": "react-jsx",
20+
"jsx": "preserve",
2121
"incremental": true,
2222
"paths": {
2323
"@/*": [

0 commit comments

Comments
 (0)