Hi there. I wonder how to implement pagination wit...
# rx
u
Hi there. I wonder how to implement pagination with
Retrofit
request +
Rx
.
Copy code
data class Response(
    ...
    val hasNextPage : Boolean,
    val nextPageId : Int?
)

fun makeRequest(val nextPageId : Int) : Single<Response>
I would like to make requests until I receive
hasNextPage == false
in response model. Is there a way to do that in a reactive way without recursion? Any help will be appreciated.