-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Use eager factory optimization only in production env (close #442) #473
Conversation
Codecov Report
@@ Coverage Diff @@
## master #473 +/- ##
=======================================
Coverage 88.86% 88.86%
=======================================
Files 53 53
Lines 386 386
=======================================
Hits 343 343
Misses 43 43
Continue to review full report at Codecov.
|
The title of this PR and the commit should be "Use eager factory optimization only in production env ". |
@wuct oops, fixed. |
Looks good to me, thanks! |
Hmmm, actually I think we should move the |
Agreed. So both to |
Hm, looks like |
Done. I returned check for Options:
WDYT? |
@@ -4,9 +4,9 @@ const isReferentiallyTransparentFunctionComponent = Component => | |||
Boolean( | |||
typeof Component === 'function' && | |||
!isClassComponent(Component) && | |||
!Component.propTypes && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like break previous behaviour?
IMO option 1 is preferred, having that it is fully compatible with previous behaviour in production mode. |
Done. |
|
Thank you |
As discussed in #442.
propTypes
check anymore since it's already no-op in prod env.shallow
→mount
changes in tests – that's actually the confusion which I described in corresponding issue.✌️