Skip to content

Commit

Permalink
fix(ui): onload triggers only on inView value change (#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung authored Jul 19, 2024
1 parent 27831f3 commit 18e31dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/tabby-ui/components/load-more-indicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const LoadMoreIndicatorRender: React.FC<React.PropsWithChildren<Props>> = ({
if (inView && !isFetching) {
onLoad?.()
}
}, [inView, isFetching])
}, [inView])

return (
<div className={cn('w-full', className)} ref={ref}>
Expand Down

0 comments on commit 18e31dc

Please sign in to comment.