[FIX] store: connected component with undefined, null and string props

This commit is contained in:
Alexandre Kühn
2019-04-15 13:38:43 +02:00
committed by Géry Debongnie
parent 85eb30626d
commit 9f77344c3a
2 changed files with 55 additions and 1 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ export function connect(mapStateToProps, options: any = {}) {
let areKeyObservable = false;
for (let key in storeProps) {
areKeyObservable =
areKeyObservable || "__owl__" in storeProps[key];
areKeyObservable || (storeProps[key] && typeof (storeProps[key]) === "object" && "__owl__" in storeProps[key]);
}
if (areKeyObservable) {
hashFunction = function({ storeProps }) {