Use eager factory optimization only in production env (close #442)#473
Use eager factory optimization only in production env (close #442)#473istarkov merged 3 commits intoacdlite:masterfrom deepsweet:optimize-only-in-prod-env
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? |
| Boolean( | ||
| typeof Component === 'function' && | ||
| !isClassComponent(Component) && | ||
| !Component.propTypes && |
There was a problem hiding this comment.
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.
propTypescheck anymore since it's already no-op in prod env.shallow→mountchanges in tests – that's actually the confusion which I described in corresponding issue.✌️