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 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();