Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add useClient and warning when default client is used #420

Merged
merged 1 commit into from
Sep 6, 2019

Conversation

kitten
Copy link
Member

@kitten kitten commented Sep 6, 2019

Fix #227

This adds a new useClient hook for convenience and warns when the default client is used, informing the user why requests are made to /graphql.

In the future we may just remove the default, but that'd be a breaking change.

@kitten kitten requested a review from JoviDeCroock September 6, 2019 15:26
@kitten kitten merged commit 2b08acd into master Sep 6, 2019
@kitten kitten deleted the fix/default-client-warning branch September 6, 2019 15:31
kitten added a commit that referenced this pull request Sep 6, 2019
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.

Don't create a client by default in the context provider
1 participant