mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] store: dispatch method returns data from action
This commit is contained in:
committed by
Géry Debongnie
parent
a3d563ebb4
commit
10cfe0b740
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user