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.
getDependsOnOwnProps
1 parent 61e1950 commit fe6eba1Copy full SHA for fe6eba1
src/connect/wrapMapToProps.ts
@@ -47,7 +47,7 @@ export function wrapMapToPropsConstant(
47
// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and
48
// therefore not reporting its length accurately..
49
// TODO Can this get pulled out so that we can subscribe directly to the store if we don't need ownProps?
50
-export function getDependsOnOwnProps(mapToProps: MapToProps) {
+function getDependsOnOwnProps(mapToProps: MapToProps) {
51
return mapToProps.dependsOnOwnProps
52
? Boolean(mapToProps.dependsOnOwnProps)
53
: mapToProps.length !== 1
0 commit comments