You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🟡 Coupon list shows an infinite bottom loading spinner even when not loading more pages
CouponListScreen always renders an extra list item at the end as a CupertinoActivityIndicator, regardless of whether a next page fetch is in progress or whether there are more pages.
Actual behavior: the loading indicator is always visible at the bottom of the list.
Expected behavior: the loading indicator should only be shown while a pagination request is in-flight (and typically hidden once the last page is reached).
Click to expand
The list’s itemCount is set to listCoupon.length + 1, and the last index always returns the spinner:
This has no conditional tied to controller state such as “isFetchingNextPage” / “hasMore”.
Recommendation: Track pagination state in CouponListController (e.g., isFetchingNextPage, hasMore based on totalPages), and only append/render the loading row when appropriate. Otherwise set itemCount to listCoupon.length.
🟡 Coupon list shows an infinite bottom loading spinner even when not loading more pages
CouponListScreenalways renders an extra list item at the end as aCupertinoActivityIndicator, regardless of whether a next page fetch is in progress or whether there are more pages.Actual behavior: the loading indicator is always visible at the bottom of the list.
Expected behavior: the loading indicator should only be shown while a pagination request is in-flight (and typically hidden once the last page is reached).
Click to expand
The list’s
itemCountis set tolistCoupon.length + 1, and the last index always returns the spinner:This has no conditional tied to controller state such as “isFetchingNextPage” / “hasMore”.
Recommendation: Track pagination state in
CouponListController(e.g.,isFetchingNextPage,hasMorebased ontotalPages), and only append/render the loading row when appropriate. Otherwise setitemCounttolistCoupon.length.Originally posted by @devin-ai-integration[bot] in #20 (comment)