[Vuejs]-Vuex strict mode throws exception while updating nested array

0👍

As well as I understood from the conversation in the vuex repo itself, the only way and the best decision is to deep clone the filters array and then just use it as a local variable.

It has to be done because arrays in JS always passed by reference and deep clone unbinds my filters array from the one in the vuex store.

This can be achieved by JSON.parse(JSON.stringify()), _.cloneDeep() or any other similarmethod.

Leave a comment