Skip to content
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

react/no-unused-class-comp-methods support getChildContext #3135

Closed
yoyo837 opened this issue Nov 12, 2021 · 4 comments · Fixed by #3136
Closed

react/no-unused-class-comp-methods support getChildContext #3135

yoyo837 opened this issue Nov 12, 2021 · 4 comments · Fixed by #3136

Comments

@yoyo837
Copy link
Contributor

yoyo837 commented Nov 12, 2021

getChildContext is an outdated API.

@ljharb
Copy link
Member

ljharb commented Nov 12, 2021

I'm not sure what you're asking for.

getChildContext is not deprecated; it's the way class components are supposed to provide context.

@yoyo837
Copy link
Contributor Author

yoyo837 commented Nov 12, 2021

Sorry for my poor english.

See this:
image

@yoyo837
Copy link
Contributor Author

yoyo837 commented Nov 12, 2021

I think it should not report lint related with that rule.

@ljharb
Copy link
Member

ljharb commented Nov 12, 2021

You're right, this is a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants