Releases: streamich/react-use
Releases Β· streamich/react-use
v7.3.0
v7.2.0
v7.1.1
v7.1.0
v7.0.2
v7.0.1
v7.0.0
7.0.0 (2019-03-28)
Bug Fixes
- π fix TypeScript build errors (5c95f28)
- π make sure all paths in usePageLeave return (6655092)
- π track "over" state better in useDrop hook (acc355c)
Features
- πΈ add clear() to useList, use fn for state updates (b20cf7c)
- πΈ add createRenderProp function for creating render-props (f4fd748)
- πΈ add useDrop hook (6e415cf)
- πΈ add useDropArea hook (676d0de)
- πΈ add useEvent hook (2a13cfb)
- πΈ add useKey hook (299fd86)
- πΈ add useKeyboardJs hook (3516aa6)
- πΈ add usePageLeave hook (33ac91b)
- πΈ add useThrottleFn hook that throttles function (0ccdf95)
- πΈ improve useFullscreen hook (7c38165)
- πΈ keep keyboard events in useKeyPress hook (00fecab)
- πΈ refactor useKeyPressEvent hook (c0658f6)
- πΈ return events from useKeyboardJs hook (aa277b8)
- πΈ simplify and improve useThrottle hook (452e8d9)
- πΈ useKeyPress hook now uses useKey, KeyboardJS removed (727743b)
BREAKING CHANGES
- 𧨠useKeyPressEvent hook modified for dependency injection and providing
event objects to user - 𧨠KeyboardJS now available anymore in useKeyPress hook, instead it will be
a separate useKeyPressKJ hook. - 𧨠useThrottle is now a completely different hook