mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] connected child components with custom hooks
This commit is contained in:
committed by
Géry Debongnie
parent
d6e61c2203
commit
e7a4ad99de
@@ -27,9 +27,11 @@ export function connect(mapStateToProps) {
|
||||
this.updateProps(nextProps, false);
|
||||
}
|
||||
});
|
||||
super.mounted();
|
||||
}
|
||||
willUnmount() {
|
||||
this.env.store.off("update", this);
|
||||
super.willUnmount();
|
||||
}
|
||||
updateProps(nextProps, forceUpdate) {
|
||||
nextProps = Object.assign(nextProps, this.__widget__.currentStoreProps);
|
||||
|
||||
Reference in New Issue
Block a user