Back to snippets

Set, add, remove vuex mutations

Helper mutations to make "mutating" a bit easier. This snippet creates a set of generic mutations to set, add and remove states.

Copy to clipboard

Code example