Handling Side Effects in Vue Computed Properties
Correct approaches for updating out-of-scope data in Vue computed properties
Updating data inside Vue computed properties might get tricky if said data is out of computed scope. Of course, you can always use the “this” keyword to access data, but it leads to an error. Therefore, we have to use methods, watchers, or setter functions. This post reviews all three approaches and some use cases with examples.