react-lifecycles-compat
Advanced tools
Changelog
3.0.0 (April 9, 2018)
Throw an error for any polyfilled component that mixes old lifecycles (componentWillMount
, componentWillReceiveProps
, or componentWillUpdate
) and new lifecycles (getDerivedStateFromProps
or getSnapshotBeforeUpdate
) as React 16.3+ does not support this case and will not invoke the old lifecycles. This error ensures consistent behavior between React 16.3+ and older versions. (#14)
Changelog
2.0.1 (April 9, 2018)
Add a DEV mode warning for any polyfilled component that mixes old lifecycles (componentWillMount
, componentWillReceiveProps
, or componentWillUpdate
) and new lifecycles (getDerivedStateFromProps
or getSnapshotBeforeUpdate
) as React 16.3+ does not support this case and will not invoke the old lifecycles. This warning ensures consistent behavior between React 16.3+ and older versions. (#15)