redux-interactions
Advanced tools
Comparing version 2.3.68 to 2.3.70
@@ -35,4 +35,9 @@ "use strict"; | ||
} | ||
if (!_.has(state, this.mountPoint)) { | ||
throw new TypeError(("Called @selector with invalid state object (no path '" + this.mountPoint + "'). ") + | ||
"Perhaps a @selector method is calling another @selector method? Or the " + | ||
"interaction isn't mounted at all."); | ||
} | ||
return scopedSelector.call.apply(scopedSelector, [this, _.get(state, this.mountPoint)].concat(args)); | ||
}; | ||
} |
@@ -51,3 +51,7 @@ "use strict"; | ||
it("doesn't mind if there are no entities", function () { | ||
var state = {}; | ||
var state = { | ||
entities: { | ||
collection: undefined, | ||
}, | ||
}; | ||
var transformed = instance.transformState(state); | ||
@@ -54,0 +58,0 @@ expect(transformed).to.equal(state); |
{ | ||
"name": "redux-interactions", | ||
"version": "2.3.68", | ||
"version": "2.3.70", | ||
"description": "A streamlined approach to managing your Redux action creators and reducers.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/convoyinc/redux-interactions", |
58834
1470