Menu

1 / 8

Next.js 16 `unstable_rootParams` in 2026: Accessing Layout Params Deep in the Tree Without Prop Drilling

#devcommunity#dev#root#next#layout
Long article (2417 words) — no AI summary yet.
Reading 0:00
15s threshold

Next.js 16 unstable_rootParams in 2026: Accessing Layout Params Deep in the Tree Without Prop Drilling

This article was written with the assistance of AI, under human supervision and review.

The next/root-params module, introduced in Next.js 16.3 , lets any Server Component in your application read dynamic segments that sit at or above the root layout, without receiving those values as props. For teams building internationalized apps, this means a deeply nested <PriceFormatter> or <DateDisplay> component can call await locale() directly, the same way it would call await cookies() , with no intermediate component forced to accept and forward a value it does not otherwise use.

A root layout holds locale, but a deeply nested component cannot reach it without prop drilling through every intermediate layer

Before next/root-params , the only way to give that <DateDisplay> component the locale value was to thread it down through every layout and component that sat between the root and the leaf.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.