diff --git a/examples/tanstack-start/src/routes/__root.tsx b/examples/tanstack-start/src/routes/__root.tsx index 1c9eb56..7eecbf3 100644 --- a/examples/tanstack-start/src/routes/__root.tsx +++ b/examples/tanstack-start/src/routes/__root.tsx @@ -49,7 +49,7 @@ function RootComponent() { activeProps={{ style: { fontWeight: 700 } }} style={{ textDecoration: 'none', color: '#222' }} > - ssr (current behavior) + ssr
- SSR is enabled by default in TanStack Start. The server HTML for this masonry container
- currently renders no items because useWindowVirtualizer.getVirtualItems(){' '}
- returns an empty array without a measured viewport — the items appear after client-side
- hydration.
+ Opt-in SSR:{' '}
+ ssr={`{{ itemCount: ${SSR_ITEM_COUNT}, columnsCount: ${INITIAL_COLUMNS} }}`}{' '}
+ renders the first {SSR_ITEM_COUNT} tiles in the server HTML using the same lane-assignment
+ algorithm the client uses. Disable JS in your browser or view source to confirm the items
+ are present before hydration.