Skip to content

prevent unused exec getCurrentValue after re-render #22442

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

Merged

Conversation

behnammodi
Copy link
Contributor

getCurrentValue at line 270 always run after a re-render but useState skipped after first render, so we can add it to the initial function to prevent that

@bvaughn

@bvaughn bvaughn merged commit 8131de1 into facebook:main Sep 27, 2021
zhengjitf pushed a commit to zhengjitf/react that referenced this pull request Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants