Use Force Update Versions Save

React Hook to force your function component to update

v1.0.6

4 years ago

Bug Fixes 🐛

Batched forceUpdate calls now update the correct number of times. #9 (Thanks @aleclarson, @latviancoder, and @ramblehead!)

v1.0.3

5 years ago

Enhancements

  • Performance: useForceUpdate now returns useReducer's dispatch function to prevent a reference change on each render. #5

Miscellaneous

  • Added unit test to verify that forceUpdate accepts no parameters.

  • Added unit test to verify that forceUpdate returns undefined.