You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not find anywhere to leave a thank you for creating this. Ty its awesome.
Just a suggestion for the team, with the type coupling between client/server we could really use some documentation on how to create a serializable sealed class for the server results.
Something like this:
@Serializable
sealed class ApiResponse {
data class Success<out T : Any>(val value: T) : ApiResponse()
object Failure : ApiResponse()
object InFlight : ApiResponse()
}
The text was updated successfully, but these errors were encountered:
Could not find anywhere to leave a thank you for creating this. Ty its awesome.
Just a suggestion for the team, with the type coupling between client/server we could really use some documentation on how to create a serializable sealed class for the server results.
Something like this:
The text was updated successfully, but these errors were encountered: