Good evening everyone, is there a nice way to fetc...
# rx
u
Good evening everyone, is there a nice way to fetch paginated data from backend using retrofit and rxjava adapter? Recursion? Thanks.
m
Not really much of an Rx solution but if you are on Android you could use the paging library: https://developer.android.com/topic/libraries/architecture/paging/
h
Observable .range(START_FROM_PAGE, Integer.MAX_VALUE) .concatMapSingle { page -> getPageSource(filter, page, perPage) } .map { map your data } .takeUntil { check for end }
2