App Router

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

Biography

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