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
@@ -88,7 +88,7 @@ You can define a custom `parentNode` element to base the scroll calulations on.
88
88
|`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 */ }` }|
89
89
|`loader`|`Component`|| A React component to render while more items are loading. The parent component must have a unique key prop. |
90
90
|`pageStart`|`Number`|`0`| The number of the first page to load, With the default of `0`, the first page is `1`.|
91
-
|`scrollParent`|`React.Element`|| Override for the scroll listener to attach to if not the immediate parent. |
91
+
|`getScrollParent`|`Function`|| Override method to return a different scroll listener if not the immediate parent. |
92
92
|`threshold`|`Number`|`250`| The distance in pixels before the end of the items that will trigger a call to `loadMore`.|
93
93
|`useCapture`|`Boolean`|`false`| Proxy to the `useCapture` option of the added event listeners.|
94
94
|`useWindow`|`Boolean`|`true`| Add scroll listeners to the window, or else, the component's `parentNode`.|
0 commit comments