feature: add "onError" hook to generated clients #96
Labels
codegen
Issues related to generator plugins
enhancement
New feature or request
lang:dart
lang:kotlin
lang:rust
lang:swift
lang:ts
Describe the feature
Adding an
onError
hook would allow you to intercept errors and trigger some side affect based on said error.For example say your server begin returning a
token expired
error. Rather than needing to catch that error every time you call a procedure, anonError
hook could trigger a side-effect that redirects the user to a login screen. Allowing you to handle this universal error in one place.Additional context
None
Would you be willing to implement this feature?
Yes
The text was updated successfully, but these errors were encountered: