Skip to content

Commit 502f27d

Browse files
authored
Merge pull request #117 from jmosouza/patch-2
Update README.md
2 parents 81453d7 + 766ae06 commit 502f27d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ import InfiniteScroll from 'react-infinite-scroller';
6464
| `hasMore` | `Boolean` | `false` | Whether there are more items to be loaded. Event listeners are removed if `false`.|
6565
| `initialLoad` | `Boolean` | `true` | Whether the component should load the first set of items.|
6666
| `isReverse` | `Boolean` | `false` | Whether new items should be loaded when user scrolls to the top of the scrollable area.|
67-
| `loadMore` | `Function` | | A callback when more items are requested by the user.|
67+
| `loadMore`       | `Function`   |           | A callback when more items are requested by the user. Receives a single parameter specifying the page to load e.g. `function handleLoadMore(page) { /* load more items here */ }` }|
68+
| `loader` | `Component` | | A React component to render while more items are loading.|
6869
| `pageStart` | `Number` | `0` | The number of the first page to load, With the default of `0`, the first page is `1`.|
6970
| `threshold` | `Number` | `250` | The distance in pixels before the end of the items that will trigger a call to `loadMore`.|
7071
| `useCapture` | `Boolean` | `false` | Proxy to the `useCapture` option of the added event listeners.|

0 commit comments

Comments
 (0)