Skip to content

Commit

Permalink
docs(router): fix the import of StartServer in the SSR guide (#2358)
Browse files Browse the repository at this point in the history
Since `StartServer` is exporting from `@tanstack/start/server`, the import path should be updated
  • Loading branch information
joshrhee committed Sep 18, 2024
1 parent 601adfb commit b5080c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/framework/react/guide/ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. `<StartServer router={router} />`
- 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`
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit b5080c6

Please sign in to comment.