Abhijeet Kumar
03/29/2023, 6:41 AMprivate val exceptionHandler = CoroutineExceptionHandler { coroutineContext, throwable ->
_homeAssetDetailFragmentState.update {
homeAssetDetailErrorReducer.reduce(throwable, it)
}
}
Do we've something similar for Orbit? I looked into the docs, there was something OrbitExceptionHandler, but couldn't find working example for this. Please help me outMikolaj Leszczynski
03/29/2023, 7:27 AMval exceptionHandler = CoroutineExceptionHandler { _, throwable ->
intent {
reduce { ... }
}
}
override val container = container<Int, Nothing>(
initialState = initState,
settings = Container.Settings(
exceptionHandler = exceptionHandler,
)
)
I personally think that the best practice is to handle errors at the call site though.Abhijeet Kumar
03/29/2023, 3:54 PM