TanStackT
TanStack3mo ago
4 replies
primary-violet

view transitions dont work on common layout parts of a page during transition

i have a side bar that has different content depending on the route

function SidebarLayout({ children }: { children: React.ReactNode }) {
  const pathname = useLocation().pathname;
  return (
    <SidebarProvider>
      <AppSidebar path={pathname} />
      {children}
    </SidebarProvider>
  );
}

export default SidebarLayout;

how do i fix this
Was this page helpful?