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.
- [Vuejs]-How can I serve a webpack'ed (Vue) app through Django without recompiling for every change?
- [Vuejs]-Why is my computed property not computing?
Source:stackexchange.com