0👍
my bad.
vuex and computed doesn’t support new Map() and Set() as they don’t serialize.
I must change the data type.
- [Vuejs]-Vue-test-utils doesn't track object props?
- [Vuejs]-Is it possible to create a method that refreshes a single vueJS component?
0👍
It works by assigning a new clone with desired changes.
state.files = new Map(allFiles
);
Source:stackexchange.com