Phil Bayfield
08/17/2024, 4:37 PMPagingSource
using limit/offset queries was needed.
Initially tried to use Paging 3.3.2 with Cash App lib for Compose, but that was crashing on iOS, but Cash App common lib fixed that and it's working on both platforms.
The one issue I have left is that the data invalidation stuff is still Android only, so it seems like I'll need to add something custom to handle this.Phil Bayfield
08/17/2024, 4:59 PMPagingSource
that seems to work:
init {
CoroutineScope(Dispatchers.IO).launch {
dao.getCountAsFlow()
.drop(1)
.collect {
invalidate()
cancel()
}
}
}