Skip to content

Commit

Permalink
Update to @apollo/client/react/ssr entry point in SSR docs (#6600)
Browse files Browse the repository at this point in the history
The Apollo Client SSR functionality is migrated into `@apollo/client` (@hwillson in #6499).
This PR updates the documentation page for the Server Side Rendering guides.
  • Loading branch information
SiddharthMantri authored Jul 15, 2020
1 parent c212d90 commit 20fa14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/performance/server-side-rendering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ The `getDataFromTree` function takes your React tree, determines which queries a
At the point that the promise resolves, your Apollo Client store will be completely initialized, which should mean your app will now render instantly (since all queries are prefetched) and you can return the stringified results in the response:

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

const client = new ApolloClient({ ... });

Expand Down Expand Up @@ -250,7 +250,7 @@ The `renderToStringWithData` function simplifies the above and simply returns th
```js
// server application code (integrated usage)
import { renderToStringWithData } from "@apollo/react-ssr";
import { renderToStringWithData } from "@apollo/client/react/ssr";
const client = new ApolloClient({ ... });
Expand Down

0 comments on commit 20fa14d

Please sign in to comment.