Hi team, is there any library can use for paginati...
# multiplatform
h
Hi team, is there any library can use for pagination kmp instead of cashapp. This is because cashapp library not well maintain
h
The androidx paging library is KMP ready
h
owh i see. because I have it is androidx so refer to android only
b
hello @Hristijan how can I handle pager in iOS side? how to tell load next page? in android, we can handle it with
Copy code
val users = viewModel.users.collectAsLazyPagingItems()
in ViewModel, we have:
Copy code
val users: Flow<PagingData<User>> = Pager(
    config = PagingConfig(pageSize = 20, enablePlaceholders = false),
    pagingSourceFactory = { database.getUserDao().getAllUsersPagingSource() }
).flow.cachedIn(viewModelScope)