7bf4822b27
The breadcrumb "All" button was broken on first click after entering a group because next-view-transitions@0.3.5's useTransitionRouter wraps router.replace() in startTransition + document.startViewTransition, and this combination is incompatible with Next.js 16.2 RSC navigation when only the search params change for the same pathname (e.g. /library?group=foo -> /library). The navigation silently never commits. Extract the library navigation logic into a useLibraryNavigation hook that uses plain useRouter from next/navigation. The data-nav-direction attribute is still set so existing directional CSS keeps working when view transitions fire via popstate. See https://github.com/shuding/next-view-transitions/issues/65 for the upstream incompatibility. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>