import { createFileRoute } from '@tanstack/react-router'; import { T } from 'gt-tanstack-start'; export const Route = createFileRoute('/')({ head: () => ({ meta: [ { title: 'Rendering modes | gt-tanstack-start' }, { name: 'description', content: 'Compare gt-tanstack-start behavior across SSR, SPA, and data-only rendering modes.', }, ], }), component: Home, }); function Home() { return (

Purpose

TanStack Start rendering mode checks

One GTProvider at the root; each route exercises a different TanStack Start rendering behavior.

SSR

Loader and component render on the server for the initial request ( ssr: true).

SPA

The route opts out of server rendering entirely with{' '} ssr: false — loader and component run on the client.

Data only

The loader runs on the server, but the component renders on the client (ssr: 'data-only').

Note

TanStack Start has no stable RSC mode yet — the next-app-router app in this repo is the RSC test bed.

); }