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 0c5f764 commit 07dbe01Copy full SHA for 07dbe01
src/connect/verifySubselectors.js
@@ -7,7 +7,7 @@ function verify(selector, methodName, displayName) {
7
methodName === 'mapStateToProps' ||
8
methodName === 'mapDispatchToProps'
9
) {
10
- if (!selector.hasOwnProperty('dependsOnOwnProps')) {
+ if (!Object.prototype.hasOwnProperty.call(selector, 'dependsOnOwnProps')) {
11
warning(
12
`The selector for ${methodName} of ${displayName} did not specify a value for dependsOnOwnProps.`
13
)
0 commit comments