Skip to content

Commit

Permalink
loader when list changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DovMa committed May 6, 2024
1 parent e5f5bb2 commit a5a28a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/FishStockings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ const FishStockings = () => {

return (
<>
{isFetching && !isFetchingNextPage && <LoaderComponent />}
{data?.pages.map((page, pageIndex) => {
return (
<React.Fragment key={pageIndex}>
Expand All @@ -174,7 +175,7 @@ const FishStockings = () => {
);
})}
{observerRef && <Invisible ref={observerRef} />}
{isFetching && <LoaderComponent />}
{isFetchingNextPage && <LoaderComponent />}
</>
);
};
Expand Down

0 comments on commit a5a28a0

Please sign in to comment.