imp: give reference to dispatch function in actions

This commit is contained in:
Alexandre Kühn
2019-04-08 22:58:45 +02:00
committed by Géry Debongnie
parent 7027ff1eb6
commit 3340401f54
2 changed files with 25 additions and 2 deletions
+3 -2
View File
@@ -91,8 +91,9 @@ export class Store extends EventBus {
this.actions[action](
{
commit: this.commit.bind(this),
state: this.state,
env: this.env
dispatch: this.dispatch.bind(this),
env: this.env,
state: this.state
},
payload
);