Skip to content

Commit 92befa1

Browse files
pkg: Update next to v15 (#3256)
* pkg: Update `next` to v15 * pkg: Update demo package --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nathaniel Tucker <[email protected]>
1 parent 35efaec commit 92befa1

File tree

7 files changed

+507
-362
lines changed

7 files changed

+507
-362
lines changed

docs/core/api/Controller.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ post.pk();
151151

152152
##### true
153153

154-
- Resolves _before_ [committing](https://react.dev/learn/render-and-commit#step-3-react-commits-changes-to-the-dom) Reactive Data Client cache updates.
154+
- Resolves _before_ [committing](https://react.dev/learn/render-and-commit#step-3-react-commits-changes-to-the-dom) Reactive Data Client cache updates. (React 16, 17)
155155
- Each call will always cause a new fetch.
156156

157-
##### undefined
157+
##### false | undefined
158158

159159
- Resolves _after_ [committing](https://react.dev/learn/render-and-commit#step-3-react-commits-changes-to-the-dom) Reactive Data Client cache updates.
160160
- Identical requests are deduplicated globally; allowing only one inflight request at a time.

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import Link from 'next/link';
22

33
import UserSelection from '@/components/todo/UserSelection';
44

5-
export default function TodoLayout({
6-
children,
7-
params,
8-
}: {
5+
export default async function TodoLayout(props: {
96
children: React.ReactNode;
10-
params?: { userId: number };
7+
params?: Promise<{ userId: number }>;
118
}) {
9+
const params = await props.params;
10+
const { children } = props;
11+
1212
return (
1313
<>
1414
<title>NextJS + Reactive Data Client = ❤️</title>
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import TodoList from '@/components/todo/TodoList';
22

3-
export default function TodoPage({ params }: { params: { userId: number } }) {
4-
return <TodoList {...params} />;
3+
export default async function TodoPage(props: {
4+
params: Promise<{ userId: number }>;
5+
}) {
6+
return <TodoList {...await props.params} />;
57
}

0 commit comments

Comments
 (0)