dillon1000/react
Commit
Browse files Coalesce lifecycle deprecation warnings until the commit phase (#12084)
Builds on top of PR #12083 and resolves issue #12044. Coalesces deprecation warnings until the commit phase. This proposal extends the utility introduced in #12060 to also coalesce deprecation warnings. New warning format will look like this: > componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount. > > Please update the following components: Foo, Bar > > Learn more about this warning here: > https://fb.me/react-async-component-lifecycle-hooks
Changed paths5 files
First-parent comparisonpackages/react-dom/src/__tests__/ReactComponentLifeCycle-test.internal.js ModifiedM packages/react-reconciler/src/ReactFiberClassComponent.js ModifiedM packages/react-reconciler/src/ReactFiberScheduler.js ModifiedM packages/react-reconciler/src/ReactStrictModeWarnings.js ModifiedM packages/react/src/__tests__/createReactClassIntegration-test.internal.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…