We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c76aac8 commit 13f51bdCopy full SHA for 13f51bd
src/connect.js
@@ -55,7 +55,10 @@ function getProps(component) {
55
* @param mapActionsToProps
56
* @returns Object
57
*/
58
-export default function connect(mapStateToProps = noop, mapActionsToProps = noop) {
+export default function connect(mapStateToProps, mapActionsToProps) {
59
+ mapStateToProps = mapStateToProps || noop;
60
+ mapActionsToProps = mapActionsToProps || noop;
61
+
62
return (children) => {
63
64
/** @namespace children.collect */
0 commit comments