From 898c4a45e7bd1dd095616bc0627117eef49f5c21 Mon Sep 17 00:00:00 2001 From: Stefan Buhrmester Date: Thu, 3 Nov 2016 19:34:14 +0900 Subject: [PATCH 1/2] add deep option --- src/vue-plugin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vue-plugin.js b/src/vue-plugin.js index a8bae0e..1c6c7bb 100644 --- a/src/vue-plugin.js +++ b/src/vue-plugin.js @@ -82,6 +82,7 @@ export default { autorun(params); }, { immediate: true, + deep: !!options.deep }); } else { autorun(); From 73ede6792f06afb06da25795790dd1e65f99ba32 Mon Sep 17 00:00:00 2001 From: Stefan Buhrmester Date: Thu, 3 Nov 2016 19:37:17 +0900 Subject: [PATCH 2/2] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a84ef7e..5e85a21 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,9 @@ new Vue({ id: this.selectedThreadId }; }, + // Optionally we can watch the parameters for changes in nested + // objects using the 'deep' option + deep: true, //// Meteor Reactivity // This will be refresh each time above params changes from Vue // Then it calls Tracker.autorun() to refresh the result