Releases: karl-run/react-bottom-scroll-listener
Releases · karl-run/react-bottom-scroll-listener
refactor
- Breaking change for hooks: Moved options into a options parameter instead of function arguments
feature
- Added prop
triggerOnNoScroll
that will trigger the callback if the page is too short and doesn't have any scroll on mount
fix/chore
- Reduced bundle size
- Fixed debouncing, should now behave like a leading debounce by default
- Added option prop to directly provide debounce options
feature
- added hook
useOnBottomScrollListener
Migrating from 2.x.x to 3.x.x
There are no breaking changes except that the required version of React is now 16.8.0. If you are on an older version of React you can either upgrade React, or stay on version 2.x.x. If you already are on a newer version of React you don't have to do anything, except maybe try out the new hook implementation. :)
bugfix
- Fix on bottom not triggering when browser was zoomed in when using a specific container as scroll element
bugfix
- Fix on bottom not triggering when browser was zoomed in
feature
- Add feature for listening to bottom scroll of specific container
chore
- Refactor entire library to TypeScript
chore
- Repackaged module, including umd, cjs and es format.
- Fixed dependency, reducing module size from 26kb to 5kb (2.1kb gzipped).