Unverified Commit 44917cf2 authored by nauvalazhar's avatar nauvalazhar Committed by GitHub

docs: `async` is missing in a server component (#63661)

parent f509de95
......@@ -605,7 +605,7 @@ In Server Components, a common practice is to conditionally render UI elements b
**Example:**
```tsx filename="app/dashboard/page.tsx" switcher
export default function Dashboard() {
export default async function Dashboard() {
const session = await getSession()
const userRole = session?.user?.role // Assuming 'role' is part of the session object
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment