Our pagination/infinite scroll code (a hook named usePaginatedScroll) is still a bit buggy. I think that rather than continuing to maintain this, we should just use RTK Query like in the mobile app. There is little point to spending so much time on problems other people already solved.
One possible annoyance is that RTK Query always caches the result so we need to make sure we invalidate it in the correct places. If we somehow manage this large refactor any bugs relating to searching and pagination should no longer be a concern.
Our pagination/infinite scroll code (a hook named
usePaginatedScroll) is still a bit buggy. I think that rather than continuing to maintain this, we should just use RTK Query like in the mobile app. There is little point to spending so much time on problems other people already solved.One possible annoyance is that RTK Query always caches the result so we need to make sure we invalidate it in the correct places. If we somehow manage this large refactor any bugs relating to searching and pagination should no longer be a concern.