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
Hi Guys, I might remove the userScroll property from the loadMore callback (as below) in the near future. If anyone thinks it's useful, please let me know.
const loadMore = ({
startIndex, // (number) The index of the first batch item
stopIndex, // (number) The index of the last batch item
loadIndex, // (number) The index of the current batch items (e.g. 1 - 15 as `0`, 16 - 30 as `1`, and so on)
scrollOffset, // (number) The scroll offset from top/left, depending on the `horizontal` option
- userScroll, // (boolean) Tells you the scrolling is through the user or not
}) => {
// Fetch data...
};
const props = useVirtual({ loadMore });
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Guys, I might remove the
userScroll
property from the loadMore callback (as below) in the near future. If anyone thinks it's useful, please let me know.const loadMore = ({ startIndex, // (number) The index of the first batch item stopIndex, // (number) The index of the last batch item loadIndex, // (number) The index of the current batch items (e.g. 1 - 15 as `0`, 16 - 30 as `1`, and so on) scrollOffset, // (number) The scroll offset from top/left, depending on the `horizontal` option - userScroll, // (boolean) Tells you the scrolling is through the user or not }) => { // Fetch data... }; const props = useVirtual({ loadMore });
Beta Was this translation helpful? Give feedback.
All reactions