Skip to content

Commit

Permalink
Update packages/client-react-streaming/src/registerApolloClient.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas authored Feb 21, 2024
1 parent 544551c commit 4c1330e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/client-react-streaming/src/registerApolloClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export function registerApolloClient(makeClient: () => ApolloClient<any>) {
if (arguments.length) {
throw new Error(
`
You cannot pass arguments into \`getClient\`!
If you were to pass arguments into \`getClient\`, you would get a different copy
of Apollo Client for every time you called it with different arguments, resulting
in duplicate requests and a non-functional cache.
You cannot pass arguments into \`getClient\`.
Passing arguments to \`getClient\` returns a different instance
of Apollo Client each time it is called with different arguments, potentially
resulting in duplicate requests and a non-functional cache.
`.trim()
);
}
Expand Down

0 comments on commit 4c1330e

Please sign in to comment.