Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Releases: seatgeek/react-infinite

Fix for Internet Explorers

10 Dec 14:47
Compare
Choose a tag to compare

scrollY, quite unfortunately, is not available in pre-Edge IE browsers. Thanks to @sarmadsangi, this was fixed.

Use precalculated children count values

16 Dec 22:33
Compare
Choose a tag to compare
0.6.1

Add new dist files.

Updates for React 0.14

17 Nov 05:10
Compare
Choose a tag to compare

React Infinite now uses ReactDOM for React 0.14. Please pin your package to 0.6.0 for React 0.13 support.

Chatbox

08 Nov 22:10
Compare
Choose a tag to compare

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 to infiniteLoadBeginEdgeOffset. 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

08 Nov 01:22
Compare
Choose a tag to compare

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

29 Oct 22:03
Compare
Choose a tag to compare

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

21 Oct 20:30
Compare
Choose a tag to compare
Merge pull request #93 from seatgeek/height-fix

Remove event listener correctly.

Scrollable Fix

19 Oct 14:21
Compare
Choose a tag to compare
0.5.6

Commit dist files.

Ref bugfix

16 Oct 03:52
Compare
Choose a tag to compare

Guards against missing ref.scrollable.

Further fixes for touch scrolling and bugfixes

15 Oct 23:56
Compare
Choose a tag to compare
  • Allows zero or one children. Close #85
  • Allow containerHeight to be undefined if useWindowAsScrollContainer istrue`. Close #84
  • Refactor to calculate new states in a single place. Close #58