Skip to content

Commit 3f6d023

Browse files
authored
Wrap note about creating new instance in Caution (#11960)
1 parent c2a812e commit 3f6d023

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/source/performance/server-side-rendering.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ app.listen(basePort, () => console.log(
124124

125125
So far, whenever this example server receives a request, it first initializes Apollo Client and then creates a React tree that's wrapped with the `ApolloProvider` and `StaticRouter` components. The contents of that tree depend on the request's path and the `StaticRouter`'s defined routes.
126126

127-
> It's important to create an _entirely new instance_ of Apollo Client for each request. Otherwise, your response to a request might include sensitive cached query results from a _previous_ request.
127+
<Caution>
128+
129+
It's important to create an _entirely new instance_ of Apollo Client for each request. Otherwise, your response to a request might include sensitive cached query results from a _previous_ request.
130+
131+
</Caution>
128132

129133
### Executing queries with `getDataFromTree`
130134

0 commit comments

Comments
 (0)