Deprecated is not the right word here, but you will understand what I mean after reading this post.
When bootstrapping a new Tanstack Start project with pnpm create @tanstack/start@latest, the Outlet component is not used at all. Instead, RootDocument uses {children} to render routes, like this:
// src/routes/__root.tsx
export const Route = createRootRoute({
shellComponent: RootDocument,
})
function RootDocument({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<head>
<HeadContent />
</head>
<body>
{children}
<Scripts />
</body>
</html>
)
}
Does that mean there is no use case for <Outlet /> anymore?