You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,8 @@ import InfiniteScroll from 'react-infinite-scroller';
64
64
|`hasMore`|`Boolean`|`false`| Whether there are more items to be loaded. Event listeners are removed if `false`.|
65
65
|`initialLoad`|`Boolean`|`true`| Whether the component should load the first set of items.|
66
66
|`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.|
68
69
|`pageStart`|`Number`|`0`| The number of the first page to load, With the default of `0`, the first page is `1`.|
69
70
|`threshold`|`Number`|`250`| The distance in pixels before the end of the items that will trigger a call to `loadMore`.|
70
71
|`useCapture`|`Boolean`|`false`| Proxy to the `useCapture` option of the added event listeners.|
0 commit comments