The same value, 16, was passed as the prevKey in two sequential Pages loaded from a PagingSource
I have this pager with Paging 3 that keeps either repeating pages (if I allow keyReuseSupported) or returning the IllegalStateException because of "The same value, 16, was passed as the prevKey in two sequential Pages loaded from a PagingSource." I am not sure why this is happening, even if I do understand the theory.
This is the paging data source:
override suspend fun load(params: LoadParams): LoadResult {
val key = params.key ?: parseDateFrom(date)
return runCatching {...