Open History to see the last commit
1import { createRootRouteWithContext } from '@tanstack/react-router'
2import crypto from 'node:crypto'
3β
4export const Route = createRootRouteWithContext<{}>()({
5 ssr: () => {
6 if (crypto.randomInt(0, 2) === 0) {
7 return 'data-only'
8 }
9 return false
10 },
11 component: () => {
12 return <div className="p-2">hello world</div>
13 },
14})