[Vuejs]-Vuex watcher wrongly firing twice

3👍

In login.vue you have two instances of <recaptcha>. Each of these will have its own set of watchers, they aren’t shared. Similarly they each have their own computed property isForgotCaptcha.

When user/forgotCaptcha changes it will change the isForgotCaptcha property of both components, triggering each of their watchers.

Setting this.running will only set that property for one of the recaptcha components, it won’t have any impact on the other.

Leave a comment