From 226af76bd77384aeae057d535772a0ed5be7f649 Mon Sep 17 00:00:00 2001 From: Josh Rhee Date: Tue, 17 Sep 2024 17:57:08 -0400 Subject: [PATCH] Update ssr.md Since `StartServer` is exporting from `@tanstack/start/server`, the import path should be updated --- docs/framework/react/guide/ssr.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/framework/react/guide/ssr.md b/docs/framework/react/guide/ssr.md index a166415230..8959423a8b 100644 --- a/docs/framework/react/guide/ssr.md +++ b/docs/framework/react/guide/ssr.md @@ -21,7 +21,7 @@ Non-Streaming server-side rendering is the classic process of rendering the mark To implement non-streaming SSR with TanStack Router, you will need the following utilities: -- `StartServer` from `@tanstack/start` +- `StartServer` from `@tanstack/start/server` - e.g. `` - Rendering this component in your server entry will render your application and also automatically handle application-level hydration/dehydration and implement the `Wrap` component option on `Router` - `StartClient` from `@tanstack/start` @@ -142,7 +142,7 @@ Here is a complete example of a server entry file that uses all of the concepts import * as React from 'react' import ReactDOMServer from 'react-dom/server' import { createMemoryHistory } from '@tanstack/react-router' -import { StartServer } from '@tanstack/start' +import { StartServer } from '@tanstack/start/server' import { createRouter } from './router' export async function render(url, response) {