修复bug
This commit is contained in:
@@ -29,9 +29,12 @@ const ListContainer = (props) => {
|
||||
|
||||
useReachBottom(() => {
|
||||
// 加载更多方法
|
||||
timerRef.current = setTimeout(() => {
|
||||
if (loading) {
|
||||
return;
|
||||
}
|
||||
// timerRef.current = setTimeout(() => {
|
||||
loadMoreMatches();
|
||||
}, 500);
|
||||
// }, 500);
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
@@ -102,15 +105,6 @@ const ListContainer = (props) => {
|
||||
|
||||
return (
|
||||
<View className="listContentWrapper">
|
||||
{/* <ScrollView
|
||||
scrollY
|
||||
scrollWithAnimation
|
||||
enableBackToTop
|
||||
enablePassive
|
||||
style={{ height: '100vh' }}
|
||||
onScrollToLower={handleScrollToLower}
|
||||
upperThreshold={60}
|
||||
> */}
|
||||
{renderList(data)}
|
||||
{/* 显示骨架屏 */}
|
||||
{loading && renderSkeleton()}
|
||||
@@ -120,7 +114,6 @@ const ListContainer = (props) => {
|
||||
{renderList(recommendList)} */}
|
||||
{/* 到底了 */}
|
||||
{data?.length > 0 && <View className="bottomTextWrapper">到底了</View>}
|
||||
{/* </ScrollView> */}
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user