-
Notifications
You must be signed in to change notification settings - Fork 9
Sometimes handeled errors are not displayed on iOS #3
Copy link
Copy link
Closed
Description
It seems that there is a problem with ARC on iOS that kills the anonymous object of the listener:
actual class ExceptionHandlerBinderImpl<T : Any> actual constructor(
private val errorPresenter: ErrorPresenter<T>,
private val eventsDispatcher: EventsDispatcher<ErrorEventListener<T>>
) : ExceptionHandlerBinder {
override fun bind(viewController: UIViewController) {
eventsDispatcher.listener = object : ErrorEventListener<T> { // anonymous object
override fun showError(throwable: Throwable, data: T) {
errorPresenter.show(throwable, viewController, data)
}
}
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working