Skip to content

Remove redundant work during mounting Indeterminate Component #13599

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

Closed

Conversation

yunchancho
Copy link
Contributor

@yunchancho yunchancho commented Sep 8, 2018

During mounting Indeterminate Component, it's redundant to check and call getDerivedStateFromProps method.
Because getDerivedStateFromProps method will be called by mountClassInstance function right after changing the fiber's tag to Class Component.

So this PR remove code regarding this redundant work.

@pull-bot
Copy link

pull-bot commented Sep 8, 2018

Details of bundled changes.

Comparing: 7d1169b...607e68f

schedule

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
schedule.development.js n/a n/a 0 B 19.17 KB 0 B 5.74 KB UMD_DEV
schedule.production.min.js n/a n/a 0 B 3.16 KB 0 B 1.53 KB UMD_PROD

Generated by 🚫 dangerJS

@yunchancho yunchancho changed the title Remove redundant work during mounting Intermediate Component Remove redundant work during mounting Indeterminate Component Sep 9, 2018
During mounting Indeterminate Component, it's redundant to check and call getDerivedStateFromProps method.
Because getDerivedStateFromProps method will be called by mountClassInstance right after changing the fiber's tag to Class Component.
@yunchancho yunchancho force-pushed the improvement/react-reconciler branch from f0b9621 to 607e68f Compare September 9, 2018 14:51
@stale
Copy link

stale bot commented Jan 10, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.

@stale stale bot added the Resolution: Stale Automatically closed due to inactivity label Jan 10, 2020
@stale
Copy link

stale bot commented Jan 17, 2020

Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Resolution: Stale Automatically closed due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants