From 78f76b50b20dbbbcc0b04d37577097f8bd17e0e0 Mon Sep 17 00:00:00 2001 From: dlguswo333 Date: Sun, 24 Nov 2024 20:07:40 +0900 Subject: [PATCH] Edit Props documentation https://github.com/dlguswo333/react-window-infinite-scroll/pull/42 Setting threshold to 0 may not disable calling loadMoreItems. Use less strict word to clarify the point. --- package/README.md | 2 +- package/src/InfiniteScroll.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/README.md b/package/README.md index 625b0e0..d917205 100644 --- a/package/README.md +++ b/package/README.md @@ -33,7 +33,7 @@ type Props = { /** * Threshold value to load more items on items rendered. * When 1st ~ *threshold*th first item at either end is visible, `loadMoreItems` will be called. - * Setting the value `0` or smaller may disable calling `loadMoreItems` on items rendered. + * Setting the value `0` or smaller might disable calling `loadMoreItems` on items rendered. */ threshold: number; /** diff --git a/package/src/InfiniteScroll.tsx b/package/src/InfiniteScroll.tsx index 697fdb7..3f0f23a 100644 --- a/package/src/InfiniteScroll.tsx +++ b/package/src/InfiniteScroll.tsx @@ -23,7 +23,7 @@ type Props = { /** * Threshold value to load more items on items rendered. * When 1st ~ *threshold*th first item at either end is visible, `loadMoreItems` will be called. - * Setting the value `0` or smaller may disable calling `loadMoreItems` on items rendered. + * Setting the value `0` or smaller might disable calling `loadMoreItems` on items rendered. */ threshold: number; /**