aris
09/20/2024, 1:39 PMprivate val _example = MutableStateFlow<Flow<PagingData<CharacterModel>>>(viewModelScope, emptyFlow())
@NativeCoroutinesState
val example: StateFlow<Flow<PagingData<CharacterModel>>> = _example.asStateFlow()
and I call him like this:
private fun getAllCharacters() {
_example.value = repository.getAllCharacters()
}
Is just a paging flow that works on android (I obviously has cashapp paging library (android, common and iOS).