TanStackT
TanStack4mo ago
17 replies
living-lavender

Index in grouped layout does not render

See the provided route tree in the image. In that case, the index.tsx never renders.

Here's my route.tsx:

import { createFileRoute, Outlet } from "@tanstack/react-router";
import { OrganizationNav } from "@/components/layout/organization-nav";

export const Route = createFileRoute("/_authed/$organizationSlug/(orglayout)")({
  component: RouteComponent,
});

function RouteComponent() {
  return (
    <>
      <OrganizationNav />
      <Outlet />
    </>
  );
}


It properly includes the outlet, and the /~/integrations route renders properly. But not the index.tsx, can someone tell me why this happens, is this intended and how should I get around this if it's not a bug?
01021038-F66F-4B26-BE0E-C98BE5632082.png
Was this page helpful?