Skip to content

Conversation

@DawidKopys
Copy link
Contributor

Correct condition before calling inject() inside useApolloClient - use hasInjectionContext(). Appropriate tests were added that would fail without these changes.

It fixes #1528 - take a look at this issue for more context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

useApolloClient checks wrong conditions before calling inject()

2 participants