App Router

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

All Electronics

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