-
Notifications
You must be signed in to change notification settings - Fork 19
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
Compose different queries to return different results: #15
Comments
@theodorDiaconu Is there already a solution for using multiple queries with grapher-react? I really like its API, but I can't find an example how to do it :-( How about something like
and then access it in the component with:
and so on. But I am not sure if this is doable as I just started to use grapher and grapher-react. |
You can now use compose: https://github.com/acdlite/recompose and do this |
Ah, I get it. Your initial post here is a hint how to do it, and not something that is planned :-) Would be nice to have an example in the Readme. Thanks for grapher! I just came back to Meteor after some time using other stuff and grapher looks really cool. |
This is a nice to have in the library too, but currently can be done in so many ways since withQuery respects HOC pattern. Glad you enjoy Grapher. A lot of work has been put behind the scenes. |
For others interested, here is a solution I came up with ...
with using the following namespace helper function
And yes, a built in API would be nice to have. Maybe one that even has a common |
+1 |
One component may need two different data sources to compose it's output.
Component props =>
The text was updated successfully, but these errors were encountered: