App Router

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

Education

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