Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Releases: JamieDixon/react-lifecycle-component

4.0.0

15 Jan 22:08
Compare
Choose a tag to compare

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

12 Jan 11:29
Compare
Choose a tag to compare

Improvements:

  • Prop Type check for component changed to a custom validator using the react-is package to support all valid component types. Thanks to @thecotne.

Minor release

31 May 12:18
Compare
Choose a tag to compare
  • Included some bumped version numbers for dependency libs
  • Replaces PropTypes import from React package to new prop-types package.

Changes

12 Jan 18:46
Compare
Choose a tag to compare
  • Ensure all lifecycle methods are called with the context of the wrapping component.
    This means you have access to this.props in componentWillReceiveProps for example
  • Pass existing lifecycle arguments from the wrapper component down to your custom lifecycle methods.
    This means you have access to nextProps coming into componentWillReceiveProps etc.
  • Add shouldComponentUpdate to the supported lifecycle hooks.
  • Added tests