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

Apollo Client support #144

Closed
iliyan-trifonov opened this issue Nov 7, 2018 · 2 comments
Closed

Apollo Client support #144

iliyan-trifonov opened this issue Nov 7, 2018 · 2 comments

Comments

@iliyan-trifonov
Copy link

Hello guys!

I am new to Apollo client and I can see they use the *Provider pattern to activate Apollo for any React component in the tree. It's similar to how Redux is used.
However we have a hybrid AngularJS/ReactJS app and use your amazing router to be able to move to React incrementally but now we don't have ReactDOM.render() where I can add the ApolloProvider component and I wonder if we can still use Apollo with our configuration?

Thank you in advance for any hints! 👍

PS: if you suggest using another graphQL client instead of Apollo I will be happy to investigate it.

@Anber
Copy link
Contributor

Anber commented Nov 9, 2018

Hi!
Just create a root react-state with Apollo and check that you use the latest version of react-hybrid.

@iliyan-trifonov
Copy link
Author

Hi @Anber ! Thank you for your suggestion!
Some time passed since I asked here and these days I am using the client object more than the <ApolloProvider> and <Query> <Mutation> components.
For now client.query() and client.mutation() are enough for me but I will be back to the components way after I rewrite most of my code to React and get rid of AngularJS.
Thanks!

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

2 participants