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-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
# libreact
4
4
5
-
[![][npm-badge]][npm-url][![][travis-badge]][travis-url][](https://github.com/streamich/react-universal-interface)[](#backers)[](#sponsors)
5
+
[![][npm-badge]][npm-url][![][travis-badge]][travis-url][](https://github.com/streamich/react-universal-interface)[](#backers)[](#sponsors)
6
6
7
7
React standard library—must-have toolbox for any React project.
-`loadMore`— required, function that is called when user scrolls to the bottom of the component.
24
+
-`cursor`— required, unique identifier of current page, `loadMore` is called only once for each adjacent unique value of `cursor`.
25
+
-`hasMore`— optional, boolean, whether there are more items to load, if set to `false`, `loadMore` will not be called.
26
+
-`sentinel`— optional, React element to render at the bottom of the component, when this element becomes visible it triggers `loadMore` function, defaults to empty `<div>` pixel.
27
+
-`margin`— optional, number, invisible margin before `sentinel` when to already call `loadMore` before `sentinel` is visible, defaults to `100`.
0 commit comments