icerockdev / moko-paging

Pagination logic in common code for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
59 stars 7 forks source link

Refresh not working while loading next page #37

Closed Dorofeev closed 3 years ago

Dorofeev commented 3 years ago

Refresh should have higher priority than loadNextPage

Actual result: refresh will not start, if nextPageLoading is in progress.

suspend fun refreshSuspend() {        
   if (mNextPageLoading.value) return
   ...
}

Expected result: next page loading canceled refresh started