App Router

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

Tops

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