Hello guys, I'm getting a strange behaviour when t...
# multiplatform
s
Hello guys, I'm getting a strange behaviour when trying to catch error. The thing is, I have this function to handle errors with views:
protected fun onRetry(error: Error, retry: () -> Unit): Unit =  view.showRetry(errorHandler.convert(error)) { retry() }
Where
view
is an interface that
activities
or
view controllers
implement On android everything work as expected, the showRetry() function is called, but... on iOS, the app doesn't crash but
showRetry()
is not called The thing is that xCode detects the function, and I need to implement it as expected, but the function is never called
s
I think we need more context to be able to help with this. Does
onRetry
get called on iOS? Where do you call it?
s
Let me pass the entirely repo
onRetry is called onKotlin, only showRetry is called on iOS