I need to trigger Vue to recalculate a computed property by adding extra rows. Here's the code snippet:
var foo = this.groups;
this.groups = {};
this.groups = foo;
You can see it in action in this fiddle: https://jsfiddle.net/8bqv29dg/. If these extra rows are not added, the available_groups
property does not update.
What is causing this behavior and how can I make sure that available_groups
updates along with groups
?
I've already attempted to add groups
to "deep-watched", but unfortunately, it didn't solve the issue.