Server-Side Rendering and Live Queries

TanStack Start routes render on the server for the first pageload of a browsing session. Neither the React Query nor standard Convex useQuery() hooks kick off requests for this data during this initial SSR pass, but the React Query hook useSuspenseQuery() does. The React Query client is then serialized with whatever data was loaded to make it available in the browser at hydration time. This reduces rendering on the server and updating on the client from two steps to one step: isomorphic data fetching with a single hook.

Try reloading this page to see the difference between useSuspenseQuery() and useQuery().

2
User 28211/28/25, 6:41 PM

Hi Emma, I'll be late to make the meeting tomorrow morning

8
User 81811/28/25, 6:41 PM

hi Jamie... how's the weather in SF?

7
User 79811/28/25, 6:41 PM

hi Nipunn! how's the weather in SF?

9
User 92011/28/25, 6:41 PM

Hi Emma- I'll be late to make the meeting tomorrow morning

5
User 55911/28/25, 6:41 PM

hello Nipunn... what's your favorite ice cream place?

4
User 45111/28/25, 6:41 PM

hi Emma- I'll be late to make the meeting tomorrow morning

3
User 30811/28/25, 6:41 PM

Hi Nipunn- how was your weekend?

3
User 38011/28/25, 6:41 PM

hi Nipunn... Could you let the customer know we've fixed their issue?

9
User 93911/28/25, 6:41 PM

Hi James, how was your weekend?

6
User 67811/28/25, 6:41 PM

hey Nipunn, what's your favorite ice cream place?

7
User 71911/28/25, 6:41 PM

hi James; I'll be late to make the meeting tomorrow morning

2
User 230711/25/25, 5:47 PM

hello Jamie, how's the weather in SF?

9
User 998411/23/25, 11:27 PM

hey Nipunn! how's the weather in SF?

7
User 785011/21/25, 9:53 PM

Hi Jamie- I'll be late to make the meeting tomorrow morning

7
User 785011/21/25, 9:53 PM

hey Jamie! Could you let the customer know we've fixed their issue?

7
User 785011/21/25, 9:53 PM

hey James- how was your weekend?

7
User 785011/21/25, 9:53 PM

hi Emma- I'll be late to make the meeting tomorrow morning

7
User 785011/21/25, 9:52 PM

hey Jamie... how's the weather in SF?

7
User 785011/21/25, 9:52 PM

hi Jamie; what's your favorite ice cream place?

1
User 129611/21/25, 9:51 PM

hello Jamie... Could you let the customer know we've fixed their issue?

1const { data } = useSuspenseQuery(convexQuery(
2 api.messages.listMessages,
3 { channel: "chatty" }
4))
1const { data, isPending } = useQuery(convexQuery(
2 api.messages.listMessages,
3 { channel: "chatty" }
4))

On the browser these queries resume their subscriptions which you can see by .

Another way to opt into server-side data loading is to load the query in a loader.

Learn More

TanStack Start SSR Guide