AutarkLabs / open-enterprise

A suite of apps that includes allocation, dot voting, issue curation, and other planning tools so organizations can collectively budget and design custom reward & bounty systems.
GNU General Public License v3.0
92 stars 54 forks source link

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

Open chadoh opened 4 years ago

chadoh commented 4 years ago

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