Parent: #884 (Next.js 16 Upgrade Plan)
Scope
Migrate findable-ui call sites using useRouter().pathname (from next/router) to usePathname() (from next/navigation). Approximately 5 call sites.
Tasks
Acceptance
- All
useRouter().pathname sites migrated.
- Tests pass.
- No behavior regression.
Part of #884.
Parent: #884 (Next.js 16 Upgrade Plan)
Scope
Migrate findable-ui call sites using
useRouter().pathname(fromnext/router) tousePathname()(fromnext/navigation). Approximately 5 call sites.Tasks
useRouter().pathnameandrouter.pathnamepatterns undersrc/.usePathname().useRouterimport if no other router APIs are used in the file.usePathname()returnsstring | null— handle null where needed).npm run lint && npm test.Acceptance
useRouter().pathnamesites migrated.Part of #884.