I started using the Pagination Library and wanted to execute a background task using Work Manager on the loadInitial and loadAfter callbacks from the pagination library. The issue I was seeing was there was an issue with Work Manager dispatching multiple observers which caused my success / failure callbacks to trigger twice. The network operation would only be executed once, the issue was the callbacks were returning twice.
Executing a network operation in those callback functions (loadInitial & loadAfter) that does not use work manager (OKHTTP), it worked as expected with the return callbacks (failure & success) only getting called once.
Does Work Manager not work with Pagination? That is really disappointing if that is the case.
Has anyone else ran into this issue?