Skip to content

Commit

Permalink
fix: useInfiniteScroll中loading的错误表现 (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimei416 authored Jan 24, 2025
1 parent 6c4045d commit 489ddd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/src/useInfiniteScroll/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const useInfiniteScroll = <TData extends UseInfiniteData>(
run();
});

const _loading = computed(() => loadingMore.value && loading.value);
const _loading = computed(() => !loadingMore.value && loading.value);

return {
data: shallowReadonly(finalData),
Expand Down

0 comments on commit 489ddd2

Please sign in to comment.