-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
no-unused-prop-types
: support shouldComponentUpdate
nextProps
#1213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
@ljharb changing the param name doesn't help. The linter reports the error on the line where I declare the type: type LoginMsgContainerProps = {
getMsgCodeErrorMsg?: string, // The linter raises the error on this line and column 24
};
18:24 error 'getMsgCodeErrorMsg' PropType is defined but prop is never used
react/no-unused-prop-types I use the same type for both React component's |
If instead of a Flow type, you used standard |
Thanks, it seems like we need to make |
no-unused-prop-types
: support shouldComponentUpdate
nextProps
@ljharb OK, thanks. Any workaround about this bug for now? |
The workaround would be an eslint override comment. |
#1232 hopefully has solved this; we can reopen after the next release if not. |
I only use prop
getMsgCodeErrorMsg
in the methodshouldComponentUpdate
, but the linter raises areact/no-unused-prop-types
error (false positive).The text was updated successfully, but these errors were encountered: