App Router

acme.com
/clothing/shoes/
Client Component Hooks
{
  "useSelectedLayoutSegment": "clothing",
  "useSelectedLayoutSegments": [
    "clothing",
    "shoes"
  ]
}
children
Client Component Hooks
{
  "useSelectedLayoutSegment": "shoes",
  "useSelectedLayoutSegments": [
    "shoes"
  ]
}
children

Shoes

Client Component Hooks
{
  "usePathname": "/hooks/clothing/shoes",
  "useParams": {
    "categorySlug": "clothing",
    "subCategorySlug": "shoes"
  },
  "useSearchParams": {},
  "useSelectedLayoutSegment": null,
  "useSelectedLayoutSegments": []
}