Android Paging 3 remoteMediator infinitely load(APPEND) data with Compose
I'm trying to implement a list with Paging 3 library using RemoteMediator.
Initial loading is OK. Mediator loaded only 3 pages, which is set in 'PageConfig'.
But When scroll the list until trigger extra loading for more data, then Mediator starts loading data infinitely until it returns MediatorResult.Success(endOfPaginationReached = true) (Which means all data in remote was loaded). Even though scrolling is stopped.
I have no idea what makes Mediator keep loading.
I want Mediator to load...