Closed
Description
This is kind of related to #801 but as far as I can tell the PR to fix (#792) it doesn't fix my issue. I modified the reproduction case from #801 there to show my issue:
import React, {PropTypes} from "react";
export default React.createClass({
propTypes: {
bar: PropTypes.func,
},
componentWillReceiveProps (nextProps) {
if (nextProps.foo) { // this line should trigger the 'prop-types' rule but doesn't
return;
}
},
render () {
this.props.bar;
return <div />;
}
});
Metadata
Metadata
Assignees
Labels
No labels