viewState.onErrorProcess(error) and viewState.onSuccessProcess(result) will never called cuz if (hasNotView()) { return; } statement tells that view state doesn't have any view. But everything before and after Observable works fine.
My depencies:
kapt "com.github.moxy-community:moxy-compiler:2.2.0"
implementation "com.github.moxy-community:moxy:2.2.0"
implementation "com.github.moxy-community:moxy-app-compat:2.2.0"
implementation 'io.reactivex.rxjava3:rxkotlin:3.0.1' (also had tried with 2.0 version)
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
Sample observable:
Callback from it within Moxy ViewPresenter (called from
onFirstViewAttach()
):viewState.onErrorProcess(error) and viewState.onSuccessProcess(result) will never called cuz
if (hasNotView()) { return; }
statement tells that view state doesn't have any view. But everything before and after Observable works fine.My depencies: