This repository has been archived by the owner on Sep 24, 2021. It is now read-only.
Releases: JamieDixon/react-lifecycle-component
Releases · JamieDixon/react-lifecycle-component
4.0.0
This release fixes an orphaned version of this library, 3.0.0.
The version 3.0.0 was published in error over a year ago, and subsequent released were made under the 2.x version.
This release fixes the versioning issue by bumping the latest version to 4.0.0.
Apologies for this mistake 🙏
2.0.6
Minor release
- Included some bumped version numbers for dependency libs
- Replaces PropTypes import from React package to new prop-types package.
Changes
- Ensure all lifecycle methods are called with the context of the wrapping component.
This means you have access tothis.props
incomponentWillReceiveProps
for example - Pass existing lifecycle arguments from the wrapper component down to your custom lifecycle methods.
This means you have access tonextProps
coming intocomponentWillReceiveProps
etc. - Add
shouldComponentUpdate
to the supported lifecycle hooks. - Added tests