loadedState is fetched in PaginationCubit within _getLiveDocuments() then it is used within the listen callback when passed to _emitPaginatedState() the loadedState at this point can sometimes contain old data from the previous call to refreshPaginatedList() instead of the new data from state.
The end result of this is that sometimes the list merges the new data into previous data but the previous data from state is empty, instead of actually containing the data from refreshPaginatedList()
loadedState is fetched in PaginationCubit within _getLiveDocuments() then it is used within the listen callback when passed to _emitPaginatedState() the loadedState at this point can sometimes contain old data from the previous call to refreshPaginatedList() instead of the new data from state.
The end result of this is that sometimes the list merges the new data into previous data but the previous data from state is empty, instead of actually containing the data from refreshPaginatedList()