App Router

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

Laptops

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