We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82c095f commit 06ee9d7Copy full SHA for 06ee9d7
docs/02-app/01-building-your-application/02-data-fetching/01-fetching-caching-and-revalidating.mdx
@@ -310,7 +310,7 @@ export const getItem = cache(async (id) => {
310
311
Although the `getItem` function is called twice, only one query will be made to the database.
312
313
-```tsx filename="app/item/layout.tsx" switcher
+```tsx filename="app/item/[id]/layout.tsx" switcher
314
import { getItem } from '@/utils/get-item'
315
316
export default async function Layout({
@@ -323,7 +323,7 @@ export default async function Layout({
323
}
324
```
325
326
-```jsx filename="app/item/layout.js" switcher
+```jsx filename="app/item/[id]/layout.js" switcher
327
328
329
export default async function Layout({ params: { id } }) {
0 commit comments