Releases: seatgeek/react-infinite
Use Babel as Compiler
The major change in this release is the move to Babel (from Facebook's former React tools) to compile the code. This should not, it is hoped, cause any trouble.
Ability to use full window as container
Adds an option that allows the window to be used as the scroll container, instead of an arbitrary div, when the prop useWindowAsScrollContainer
is set to true. This means that scroll position is detected by window.scrollY instead of the scrollTop of the div that React Infinite creates. Using this option is a way of achieving smoother scrolling on mobile before the problem is solved for container divs.
Fix for when preloadBatchSize is 0
0.4.1 Bump version.
Fixes for bundlers and other things
This release fixes the following issues:
- Webpack and Browserify can now use compiled CommonJS source files in
/build
without needing an asset pipeline to compile ES6 and JSX - Scrollable children with a React Infinite container will not trigger the infinite scroll handler
- Immutable.js can be used for child elements without warnings being triggered
- An example is given for how to use the window as the container
- Errors in arithmetic were fixed
Fix for Browserify
Using the compiled file does not work when requiring with Browserify. Using the source files is now enabled with Browserify. You must have Reactify in your pipeline when compiling, however.
Bug fix and coverage reports
0.3.3 Bump version.
Fix bug with updating children prop
Merge pull request #18 from seatgeek/variables Fix props bug, close #16
Elements of Variable Heights
React Infinite now supports rendering children not all of which have the same height. To use it, you may provide an array of the heights of the children.
<Infinite containerHeight={200} elementHeight={[111, 252, 143]}>
<div className="111-px"/>
<div className="252-px"/>
<div className="143-px"/>
</Infinite>
Remove sourcemap requests
The built files no longer request for sourcemaps. If you wish to work on react-infinite
, you can build sourcemaps with gulp -D
.
Update React versions
react-infinite also works with React 0.12.2