Skip to content

Releases: michaelhettmer/react-hooks-use-previous

v1.1.1

16 Apr 20:08
Compare
Choose a tag to compare

1.1.1 (2020-04-16)

Bug Fixes

  • update function signatures to pass new prettier v2 rules (9e1229d)

v1.1.0

11 Mar 00:34
Compare
Choose a tag to compare

1.1.0 (2020-03-11)

Features

  • add optional config as param providing a custom equality function (f11c07e)

v1.0.1

11 Mar 06:25
v1.0.1
1b45852
Compare
Choose a tag to compare

1.0.1 (2020-03-11)

Bug fixes

  • use a simple if statement to check for update instead of useEffect (bf402ea)
  • add missing test case for rerendering without value change (c2db81c)

v1.0.0: Initial Release

11 Sep 22:55
v1.0.0
b85c51b
Compare
Choose a tag to compare

1.0.0 (2020-03-11)

First version of this package providing a collection of strongly typed and well tested hooks to store and retrieve previous values from any component property.

Features

  • generic Hook usePrevious
  • predefined Hook usePreviousString
  • predefined Hook usePreviousStringArray
  • predefined Hook usePreviousNumber
  • predefined Hook usePreviousNumberArray
  • predefined Hook usePreviousBoolean
  • predefined Hook usePreviousBooleanArray