Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,12 @@ You can define a custom `parentNode` element to base the scroll calulations on.
| `threshold` | `Number` | `250` | The distance in pixels before the end of the items that will trigger a call to `loadMore`.|
| `useCapture` | `Boolean` | `false` | Proxy to the `useCapture` option of the added event listeners.|
| `useWindow` | `Boolean` | `true` | Add scroll listeners to the window, or else, the component's `parentNode`.|

### Public Methods

##### reset
Forcefully reset the local page based on `pageStart`. If the prop `initialLoad` is provided, force call `loadMore` with the start page.

This may be appropriate if the api that inserts data in the list is reset, and the next page will be the initial page and not the last page known by InfiniteScroll. This is very common in listings with InfiniteScroll and search input.

For the access public methods use `ref` prop.
90 changes: 66 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading