Skip to content

Commit

Permalink
Merge pull request #64 from AplinkosMinisterija/50-krovimosi-busenos
Browse files Browse the repository at this point in the history
loader when list changes
  • Loading branch information
ambrazasp authored May 14, 2024
2 parents 9a6efb4 + 3f8a25c commit 2506b90
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 2506b90

Please sign in to comment.