Skip to content

Commit

Permalink
docs: fix filename when it should be dynamic route (#58032)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdonisAgelis authored Nov 16, 2023
1 parent 8d9282c commit 7226746
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ If you have nested components, and each component fetches its own data, then dat

For example, the `Playlists` component will only start fetching data once the `Artist` component has finished fetching data because `Playlists` depends on the `artistID` prop:

```tsx filename="app/artist/page.tsx" switcher
```tsx filename="app/artist/[username]/page.tsx" switcher
// ...

async function Playlists({ artistID }: { artistID: string }) {
Expand Down Expand Up @@ -98,7 +98,7 @@ export default async function Page({
}
```

```jsx filename="app/artist/page.js" switcher
```jsx filename="app/artist/[username]/page.js" switcher
// ...

async function Playlists({ artistID }) {
Expand Down

0 comments on commit 7226746

Please sign in to comment.