Skip to content

Commit e4c3dba

Browse files
author
Guillaume Chau
authored
Merge pull request #1 from buhrmi/master
add deep option to watcher
2 parents b5955b9 + 73ede67 commit e4c3dba

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ new Vue({
149149
id: this.selectedThreadId
150150
};
151151
},
152+
// Optionally we can watch the parameters for changes in nested
153+
// objects using the 'deep' option
154+
deep: true,
152155
//// Meteor Reactivity
153156
// This will be refresh each time above params changes from Vue
154157
// Then it calls Tracker.autorun() to refresh the result

src/vue-plugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export default {
8282
autorun(params);
8383
}, {
8484
immediate: true,
85+
deep: !!options.deep
8586
});
8687
} else {
8788
autorun();

0 commit comments

Comments
 (0)