blaze-apollo icon indicating copy to clipboard operation
blaze-apollo copied to clipboard

Reactiveness outside of Templates

Open remarcable opened this issue 8 years ago • 1 comments

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.

remarcable avatar Jul 17 '17 15:07 remarcable

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

jamiter avatar Jul 18 '17 07:07 jamiter