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
import InfiniteScroll from 'react-infinite-scroll-component';
@@ -74,7 +74,7 @@ name | type | description
74
74
**dataLength** | number | set the length of the data.This will unlock the subsequent calls to next.
75
75
**loader** | node | you can send a loader component to show while the component waits for the next load of data. e.g. `<h3>Loading...</h3>` or any fancy loader element
76
76
**scrollThreshold** | number | string | A threshold value defining when `InfiniteScroll` will call `next`. Default value is `0.8`. It means the `next` will be called when user comes below 80% of the total height. If you pass threshold in pixels (`scrollThreshold="200px"`), `next` will be called once you scroll at least (100% - scrollThreshold) pixels down.
77
-
**onScroll** | function | a function that will listen to the scroll event on the scrolling container. Note that the scroll event is throttled, so you may not receive as many events as you would expect.
77
+
**onScroll** | function | a function that will listen to the scroll event on the scrolling container. Note that the scroll event is throttled, so you may not receive as many events as you would expect.
78
78
**endMessage** | node | this message is shown to the user when he has seen all the records which means he's at the bottom and `hasMore` is `false`
79
79
**className** | string | add any custom class you want
80
80
**style** | object | any style which you want to override
@@ -87,4 +87,3 @@ name | type | description
87
87
**pullDownToRefreshThreshold** | number | minimum distance the user needs to pull down to trigger the refresh, `default=100px` , a lower value may be needed to trigger the refresh depending your users browser.
88
88
**refreshFunction** | function | this function will be called, it should return the fresh data that you want to show the user
89
89
**initialScrollY** | number | set a scroll y position for the component to render with.
90
-
**key** | string | the key for the current data set being shown, used when the same component can show different data sets at different times, `default=undefined`
0 commit comments