Releases: seatgeek/react-infinite
Fix for Internet Explorers
scrollY
, quite unfortunately, is not available in pre-Edge IE browsers. Thanks to @sarmadsangi, this was fixed.
Use precalculated children count values
0.6.1 Add new dist files.
Updates for React 0.14
React Infinite now uses ReactDOM for React 0.14. Please pin your package to 0.6.0 for React 0.13 support.
Chatbox
This is a significant release that adds the ability to use React Infinite as a chatbox.
Features
- New major mode
displayBottomUpwards
allows React Infinite to be used as a chatbox. This means that the scroll automatically sticks to the bottom by default until the user scrolls upwards. When this major mode is active, infinite scrolling is only triggered when the user gets close to the top of the container, rather than the bottom.
Tooling Improvements
The main react-infinite.jsx
file and infiniteHelpers
are now both typechecked with Flow 0.18.1.
Deprecations
infiniteLoadBeginBottomOffset
has been renamed toinfiniteLoadBeginEdgeOffset
. Please rename the prop; it should be a simple search and replace because these are rather long names.
Allow loading to be done through onInfiniteLoad
If no children are provided on the first render (componentDidMount
), onInfiniteLoad
is now automatically called exactly once.
Add ability to specify preloadAdditionalHeight and preloadBatchSize through scale factors relative to the containerHeight
When working with the window as the scroll container, it is sometimes useful to specify a scale factor relative to the container height as the batch size, so your code does not need to know anything about the window
. To do this, use Infinite.containerHeightScaleFactor
. So, for example, if you want the preloaded batch size to be twice the container height, write preloadBatchSize={Infinite.containerHeightScaleFactor(2)}
. The same goes for preloadAdditionalHeight
- additional information can be found in the documentation.
Remove event listeners on window
Merge pull request #93 from seatgeek/height-fix Remove event listener correctly.
Scrollable Fix
0.5.6 Commit dist files.
Ref bugfix
Guards against missing ref.scrollable
.