dillon1000/react

Commit

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
Browse files
Changed paths5 files
First-parent comparison
M packages/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…