React Hook to force your function component to update
Batched forceUpdate
calls now update the correct number of times. #9 (Thanks @aleclarson, @latviancoder, and @ramblehead!)
useForceUpdate
now returns useReducer
's dispatch function to prevent a reference change on each render. #5Added unit test to verify that forceUpdate
accepts no parameters.
Added unit test to verify that forceUpdate
returns undefined.