Swydo / blaze-apollo

Blaze integration for the Apollo Client
MIT License
54 stars 6 forks source link

Reactiveness outside of Templates #9

Open remarcable opened 7 years ago

remarcable commented 7 years ago

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 commented 7 years ago

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