App Router

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

Tablets

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