Next.js Discord

Discord Forum

What's the simplest way to access route segments/parameters in nested server components?

Unanswered
South Polar Skua posted this in #help-forum
Open in Discord
South Polar SkuaOP
I have the issue, that I cannot use useRouter in server components to access route-specific data and context is also not available in server components...

How do you handle this?

1 Reply

Crème D’Argent
You have to send these parameters with props to your nested server components, there is not really other solution I think