Skip to content

Commit

Permalink
pkg: Update next to v15 (#3256)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
renovate[bot] and ntucker authored Oct 24, 2024
1 parent 35efaec commit 92befa1
Show file tree
Hide file tree
Showing 7 changed files with 507 additions and 362 deletions.
4 changes: 2 additions & 2 deletions docs/core/api/Controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ post.pk();

##### true

- Resolves _before_ [committing](https://react.dev/learn/render-and-commit#step-3-react-commits-changes-to-the-dom) Reactive Data Client cache updates.
- 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)
- Each call will always cause a new fetch.

##### undefined
##### false | undefined

- Resolves _after_ [committing](https://react.dev/learn/render-and-commit#step-3-react-commits-changes-to-the-dom) Reactive Data Client cache updates.
- Identical requests are deduplicated globally; allowing only one inflight request at a time.
Expand Down
10 changes: 5 additions & 5 deletions examples/nextjs/app/[userId]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import Link from 'next/link';

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

export default function TodoLayout({
children,
params,
}: {
export default async function TodoLayout(props: {
children: React.ReactNode;
params?: { userId: number };
params?: Promise<{ userId: number }>;
}) {
const params = await props.params;
const { children } = props;

return (
<>
<title>NextJS + Reactive Data Client = ❤️</title>
Expand Down
6 changes: 4 additions & 2 deletions examples/nextjs/app/[userId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import TodoList from '@/components/todo/TodoList';

export default function TodoPage({ params }: { params: { userId: number } }) {
return <TodoList {...params} />;
export default async function TodoPage(props: {
params: Promise<{ userId: number }>;
}) {
return <TodoList {...await props.params} />;
}
Loading

0 comments on commit 92befa1

Please sign in to comment.