react-easy-infinite-scroll-hook
Advanced tools
Comparing version 1.3.7 to 1.3.8
{ | ||
"name": "react-easy-infinite-scroll-hook", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A react hook for creating simple, fast and lightweight components with infinite scrolling in any direction, supporting both windowed and scrollable elements.", |
@@ -41,3 +41,3 @@ # react-easy-infinite-scroll-hook | ||
You can create infinite scrolling in any direction and in any pair, for example: `up-down`, `down-right`, `etc.` and even `all` at once. | ||
You can create infinite scrolling in `any direction` and in `any pair`, for example: `up-down`, `down-right`, `etc.` and even `all at once`. | ||
@@ -59,3 +59,4 @@ ### Simple Example | ||
rowCount: items.length, | ||
// If marked "true" in the specified direction, it will try to load more items if the threshold is reached | ||
// Whether there are more items to load | ||
// if marked "true" in the specified direction, it will try to load more items if the threshold is reached | ||
// support for all directions "up", "down", "left", "right", both individually and in all directions at the same time | ||
@@ -139,3 +140,3 @@ hasMore: { down: canLoadMore }, | ||
| next | Yes | A callback when more items are requested by the user. Receives a single parameter specifying the direction to load e.g. `(direction) => Promise<void>` | Function | | | ||
| hasMore | Yes | If marked "true" in the specified direction, it will try to load more items if the threshold is reached. Expect object with directions to load `{ up: false, down: false, left: false, right: false }` | object | | | ||
| hasMore | Yes | Whether there are more items to load. If marked `true` in the specified direction, it will try to load more items if the threshold is reached. Expect object with directions to load `{ up: false, down: false, left: false, right: false }` | object | | | ||
| rowCount | Condition | Number of items in a `vertical` list (scroll axis `Y`). Required if you are using `vertical` scroll. | number | | | ||
@@ -142,0 +143,0 @@ | columnCount | Condition | Number of items in a `horizontal` list (scroll axis `X`). Required if you are using `horizontal` scroll. | number | | |
77690
206