Skip to content

Reactiveness outside of Templates #9

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

Open
remarcable opened this issue Jul 17, 2017 · 1 comment
Open

Reactiveness outside of Templates #9

remarcable opened this issue Jul 17, 2017 · 1 comment

Comments

@remarcable
Copy link

Hello,

how would you approach using Apollo outside Templates?
For now I'm using the apolloClient, instantiated with new ApolloClient(config) directly. The biggest disadvantage is, however, that you don't have reactiveness using Tracker out of the box.

My use-case is using a mutation inside a function in many places.

@jamiter
Copy link
Contributor

jamiter commented Jul 18, 2017

Hi!

At the moment we also use the ApolloClient directly. But I understand your use case. The gqlQuery is tightly coupled with the Template.prototype at the moment but we might be able to "disconnect" it and make the reactive Result available outside of templates.

I'm quite busy at the moment but I'll look into it when I have the time.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants