Maciej Sady
Jan 12, 2024

--

There is a bug in this implementation. If list is shorter than available screen size it won't load subsequent pages. Imagine the following scenario:

1. Screen can fit up to 10 items

2. First list has 4 items

3.`reachedBottom` turns to true

4. We `loadMore`

5. Now list contains 8 items

6.`reachedBottom` is still true, LaunchedEffect is not re-executed and `loadMore` is not called

--

--

Maciej Sady
Maciej Sady

Written by Maciej Sady

Programming enthusiast with a technical background, constantly looking for new learning opportunities.

Responses (1)