[FIX] store: make Array.map work correctly on the result of selector

closes #577
This commit is contained in:
Sébastien Theys
2019-12-13 16:20:19 +01:00
committed by Géry Debongnie
parent 5e7f1d5e6d
commit 455e45c148
2 changed files with 35 additions and 0 deletions
+3
View File
@@ -141,6 +141,9 @@ export function useStore(selector, options: SelectorOptions = {}): any {
},
set(target, k, v) {
throw new Error("Store state should only be modified through actions");
},
has(target, k) {
return k in result;
}
});
}