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

[DEV] stop requiring redef of 'client' with graphql hooks #1924

Open
chadoh opened this issue Jan 25, 2020 · 0 comments
Open

[DEV] stop requiring redef of 'client' with graphql hooks #1924

chadoh opened this issue Jan 25, 2020 · 0 comments
Assignees

Comments

@chadoh
Copy link
Collaborator

chadoh commented Jan 25, 2020

Instead of this:

import { ApolloProvider } from 'react-apollo'

if you do this:

import { ApolloProvider } from '@apollo/react-hooks'

then when you use useQuery or useMutation throughout your app,

you won't need to re-define client!

THIS CLEANS UP THE CODE SO MUCH

@chadoh chadoh self-assigned this Jan 25, 2020
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

No branches or pull requests

1 participant