Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Improve defaultProps handling #2391

Closed

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Aug 6, 2018

Release notes: none

Fixes a defaultProps bug and also improves bloat slightly by ensuring we state that the default props helper can be omitted if the value it mutates is never used. Furthermore, added isPure to the binary expression temporal, so if the value created from it never gets used, then we don't emit the action.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trueadm is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

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

Successfully merging this pull request may close these issues.

3 participants