Files
sct-overseerr/src/hooks
Gauthier 45f25408c6 fix(usediscover hook): detect end of pagination when totalSize is a multiple of pageSize (#1649)
Fixes a crash on the `/discover/watchlist` page that occurred when the number of items was exactly a
multiple of the page size (e.g., 80, 100, 120). The issue was caused by incorrect end-of-pagination
detection, leading to infinite data fetching. This update adjusts the `isReachingEnd` condition to
correctly handle these edge cases by checking if `totalResults` is less than or equal to the
expected total based on `size * pageSize`.

fix #1623
2025-05-09 13:15:05 +02:00
..
2024-11-20 19:33:16 +08:00