[FIX] connected child components with custom hooks

This commit is contained in:
Alexandre Kühn
2019-03-29 17:37:40 +01:00
committed by Géry Debongnie
parent d6e61c2203
commit e7a4ad99de
2 changed files with 50 additions and 0 deletions
+2
View File
@@ -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);