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

Releases: seatgeek/react-infinite

Fix for Internet Explorers

Choose a tag to compare

@garetht garetht released this 10 Dec 14:47

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

Use precalculated children count values

Choose a tag to compare

@garetht garetht released this 16 Dec 22:33
0.6.1

Add new dist files.

Updates for React 0.14

Choose a tag to compare

@garetht garetht released this 17 Nov 05:10

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

Chatbox

Choose a tag to compare

@garetht garetht released this 08 Nov 22:10

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

Choose a tag to compare

@garetht garetht released this 08 Nov 01:22

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

Choose a tag to compare

@garetht garetht released this 29 Oct 22:03

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

Choose a tag to compare

@garetht garetht released this 21 Oct 20:30
Merge pull request #93 from seatgeek/height-fix

Remove event listener correctly.

Scrollable Fix

Choose a tag to compare

@garetht garetht released this 19 Oct 14:21
0.5.6

Commit dist files.

Ref bugfix

Choose a tag to compare

@garetht garetht released this 16 Oct 03:52

Guards against missing ref.scrollable.

Further fixes for touch scrolling and bugfixes

Choose a tag to compare

@garetht garetht released this 15 Oct 23:56
  • 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