Another method to force reactivity on Vue components

If a property changes back and forth in the same `tick`, 
it won't trigger Vue's reactivity. 

Here's how to do it dirty without a watcher:

this.$set(this, 'property', false)
this.$nextTick(() => {
  this.$set(this, 'property', true)

Now, don't ever do this.

Nick Ciolpan
25 Mar 2020
« Back to post