[IMP] store: dispatch method returns data from action

This commit is contained in:
Alexandre Kühn
2019-08-27 10:18:31 +02:00
committed by Géry Debongnie
parent a3d563ebb4
commit 10cfe0b740
2 changed files with 42 additions and 3 deletions
+2 -3
View File
@@ -39,9 +39,8 @@ export class ConnectedComponent<T extends Env, P, S> extends Component<T, P, S>
return {};
}
dispatch() {
const [name, ...payload] = arguments;
(this.__owl__ as any).store.dispatch(name, ...payload);
dispatch(name, ...payload) {
return (this.__owl__ as any).store.dispatch(name, ...payload);
}
/**