Skip to content

Commit 672f261

Browse files
committed
feat(checkAndReport): Check only the updated component
1 parent ba488b0 commit 672f261

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ export default function install (Vue, options) {
3131

3232
const checkWithDebounce = debounce(function () {
3333
resetCache()
34-
draf(() => checkAndReport(options))
34+
draf(() => checkAndReport(options, this.$el))
3535
}, 1000, { maxWait: 5000 })
3636

3737
// Rechecking when updating specific component
3838
Vue.mixin({
3939
updated () {
40-
checkWithDebounce()
40+
checkWithDebounce.call(this)
4141
},
4242
// Used for change of route
4343
beforeDestroy () {

0 commit comments

Comments
 (0)