apollographql / apollo-client

:rocket:  A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server.
https://apollographql.com/client
MIT License
19.38k stars 2.66k forks source link

[Feature Idea] 'QueryRef` for React Apollo? #2954

Closed loganpowell closed 6 years ago

loganpowell commented 6 years ago

Intended outcome:

I'm super stoked about using Apollo Client for its link-state and am also excited about the prospect of leveraging observables in my code (with RxJS in my case).

Actual outcome:

However, though there seems to be first-class support for RxJS for Angular, that seems to be missing for React.

Are there any plans for supporting QueryRef in react-apollo?

Trancever commented 6 years ago

/label idea, feature

hwillson commented 6 years ago

There aren't currently any plans to integrate RxJS further with apollo-client / react-apollo. apollo-client already leverages Observables (using zen-observable), and if you want to use RxJS the apollo-client API should allow you to do so. Thanks!