Files
Nathan Nguyen 2f7e5cfcbc Return leaf selected layout segment for named slots (#909)
useSelectedLayoutSegment(parallelRoutesKey) returned the first segment for every route key. That matches children routes, but it misreports nested named parallel routes such as a slot path with members/profile by returning members instead of the active leaf profile.

The root cause was treating the array returned by useSelectedLayoutSegments() as having the same reduction rule for children and named slots. Match Next.js by keeping first-segment behaviour for children and using the final segment for non-children parallel route keys.

Adds a nested @team fixture route that mirrors Next.js parallel-routes-use-selected-layout-segment coverage.
2026-04-26 15:10:50 +01:00
..
2026-02-24 09:29:39 -06:00
2026-03-09 14:56:14 +00:00
2026-02-24 09:29:39 -06:00