We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fdac6d commit 97c1d19Copy full SHA for 97c1d19
1 file changed
src/alt/store.js
@@ -26,17 +26,18 @@ class TestStore {
26
}
27
28
export default function TestStoreWrapper(store, actions) {
29
- return new Proxy(new TestStore(store, actions), {
+ var proxy = new Proxy(new TestStore(store, actions), {
30
get: function(target, name) {
31
if (name in target) {
32
return target[name]
33
34
else if (name in target.actions) {
35
return (params) => {
36
target.actions[name](params)
37
- return target
+ return proxy
38
39
40
41
})
42
43
0 commit comments