You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After update from 7.11.1 to 7.12.0 we started seeing this problem. Originally, the error occurred on a ref (e.g. this.input.current, where this.input was created in the constructor using React.createRef()), but here's a more abstract minimal example:
importReactfrom"react";exportclassDextendsReact.Component{constructor(props){super(props);this.x={y: "z"};}componentDidUpdate(){// react/prop-types: 'y' is missing in props validationconsole.log(this.x.y);}}
Oddly enough, only componentDidUpdate() seems to be affected:
importReactfrom"react";exportclassDextendsReact.Component{constructor(props){super(props);this.x={y: "z"};}componentDidMount(){console.log(this.x.y);// NO error}componentDidUpdate(){console.log(this.x.y);// ERROR}render(){returnthis.x.y;// NO error}}
(eslint 5.11.1)
The text was updated successfully, but these errors were encountered:
After update from 7.11.1 to 7.12.0 we started seeing this problem. Originally, the error occurred on a ref (e.g.
this.input.current
, wherethis.input
was created in the constructor usingReact.createRef()
), but here's a more abstract minimal example:Oddly enough, only
componentDidUpdate()
seems to be affected:(eslint 5.11.1)
The text was updated successfully, but these errors were encountered: