Skip to content

Commit

Permalink
Update migrating guide for SSR. (#6601)
Browse files Browse the repository at this point in the history
The Apollo Client SSR functionality has migrated into `@apollo/client`
(@hwillson in #6499). This PR updates the migration guide page in the v3
documentation.
  • Loading branch information
SiddharthMantri authored Jul 15, 2020
1 parent 20fa14d commit 0e59d38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/migrating/hooks-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ npm install @apollo/client @apollo/react-components @apollo/react-hoc

## Server-side rendering

The `getDataFromTree` and `renderToStringWithData` React SSR functions are not bundled with Apollo Client, in order to help reduce bundle sizes for those who aren't using SSR. If you want to use these functions, you'll need to add in the `@apollo/react-ssr` package:
The `getDataFromTree`, `getMarkupFromTree`, and `renderToStringWithData` React SSR functions are bundled with Apollo Client 3. If you want to use these functions, you'll need to import them from `@apollo/client/react/ssr`:

```
npm install @apollo/react-ssr
import { getDataFromTree } from "@apollo/client/react/ssr";
```

## Testing
Expand Down

0 comments on commit 0e59d38

Please sign in to comment.