From 0a6cad0557b7096eef1c23917df9703e73bddec9 Mon Sep 17 00:00:00 2001 From: Sid Date: Wed, 15 Jul 2020 09:58:44 +0200 Subject: [PATCH] Update import entry point for Apollo SSR The Apollo Client SSR functionality is migrated into `@apollo/client` - @hwillson in [#6499](https://github.com/apollographql/apollo-client/issues/6499). This PR updates the documentation page for the Server Side Rendering guides. --- docs/source/performance/server-side-rendering.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/performance/server-side-rendering.mdx b/docs/source/performance/server-side-rendering.mdx index 5d3f3256816..24efc12acfe 100644 --- a/docs/source/performance/server-side-rendering.mdx +++ b/docs/source/performance/server-side-rendering.mdx @@ -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({ ... }); @@ -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({ ... });