-
Notifications
You must be signed in to change notification settings - Fork 49.2k
Remove debugRenderPhaseSideEffects
flag
#17270
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
Conversation
There are two similar flags, `debugRenderPhaseSideEffects` and `debugRenderPhaseSideEffectsForStrictMode`. The strict mode one is the only one that is actually used. I think originally the theory is that we would one day turn it on for all components, even outside strict mode. But what we'll do instead is migrate everyone to strict mode. The only place `debugRenderPhaseSideEffects` was being used was in an internal test file. I rewrote those tests to use public APIs.
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 a nice cleanup.
Size changes (experimental)ReactDOM: size: 0.0%, gzip: -0.0% Details of bundled changes.Comparing: 6dc2734...b3007a0 react-native-renderer
react-test-renderer
react-dom
react-art
react-reconciler
|
Size changes (stable)ReactDOM: size: 0.0%, gzip: -0.1% Details of bundled changes.Comparing: 6dc2734...b3007a0 react-dom
react-art
react-native-renderer
react-reconciler
|
c1ad939
to
b3007a0
Compare
Should this callsite have been update too? Or is it different? https://github.com/facebook/react/blob/master/scripts/rollup/shims/react-native/ReactFeatureFlags.js It looks like there are still three callsites of |
There are two similar flags,
debugRenderPhaseSideEffects
anddebugRenderPhaseSideEffectsForStrictMode
. The strict mode one is the only one that is actually used. I think originally the theory is that we would one day turn it on for all components, even outside strict mode. But what we'll do instead is migrate everyone to strict mode.The only place
debugRenderPhaseSideEffects
was being used was in an internal test file. I rewrote those tests to use public APIs.