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

[core] abstractButton: remove reliance on getDerivedStateFromProps #4310

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

jaamison
Copy link
Contributor

@jaamison jaamison commented Sep 3, 2020

PR removes an unnecessary call to getDerivedStateFromProps on each render cycle. React maintainers generally consider this an anti-pattern.

@adidahiya adidahiya merged commit 90db227 into palantir:develop Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants