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

[eslint-config-react-app]: consider configuring react/no-unstable-nested-components rule? #10729

Open
karlhorky opened this issue Mar 23, 2021 · 0 comments

Comments

@karlhorky
Copy link

Is your proposal related to a problem?

Components nested inside components without memoization leads to unstable components (the nested component and all its children are recreated during each re-render). eslint-config-react-app could warn or error upon seeing this pattern.

Describe the solution you'd like

eslint-config-react-app could configure the new react/no-unstable-nested-components rule that will be released in eslint-plugin-react@7.23.0 (see pull request and changelog)

Describe alternatives you've considered

Do not lint for this problem

Additional context

Related Pull Request: jsx-eslint/eslint-plugin-react#2750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant