From af48b4e2f70daa227f57963860053fb1e452a49f Mon Sep 17 00:00:00 2001 From: Fraser Greenlee Date: Tue, 18 Jul 2017 16:40:52 +0100 Subject: [PATCH] fixing observer-> observable method --- store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store.js b/store.js index 74cc627..83dfb81 100644 --- a/store.js +++ b/store.js @@ -74,7 +74,7 @@ const store = new Vuex.Store({ }, // You call this action to start the sunscription subscribeToFruits(context){ - fruitsSubscriptionObserver = fruitsSubscriptionObserver.subscribe({ + fruitsSubscriptionObserver = submetricvaluesSubscriptionObservable.subscribe({ next(data){ // mutation will say the type of GraphQL mutation `CREATED`, `UPDATED` or `DELETED` console.log(data.Fruit.mutation); @@ -108,4 +108,4 @@ const store = new Vuex.Store({ } }); -export default store; \ No newline at end of file +export default store;