0
If your this.$store.state.simulation
is object, you can’t watch for change property of object. You can watch change of object (when this.$store.state.simulation = newVal
, but not this.$store.state.simulation.anyProp = newVal
)
you should use deep watch (https://v2.vuejs.org/v2/api/#watch)
0
Through our conversation in the comments of the original post, we found that a property of simulation
was being changed, rather than the entire simulation
object. To detect such changes, OP simply needs to watch
the specific property of simulation
that is being changed, rather than the whole simulation
object.
Source:stackexchange.com