Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 02-patterns.mdx #58032

Merged
merged 9 commits into from
Nov 16, 2023
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, da

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