Skip to content
Discussion options

You must be logged in to vote

I propose not to vomit out AI schlop to give out help; if a user wants the schlop, it'd just ask gemini et. al. Instead, I think a user is here to ask actual humans. Thanks.


You've already shown my proposal above, but I want to address this:

In this solution the problem I see is the nested switch cases in UI because of the combo AsyncValue + custom state sealed class.

You probably fear this is "too much boilerplate", or "too much complicated", but imho it isn't. If my guess is right, you're probably underestimating the problem.

In a nutshell, you do need to keep track of which state you're in, and you need to keep track which was the last state that "went well", and if (and which) an e…

Replies: 1 comment 1 reply

Comment options

lucavenir
Jan 13, 2026
Collaborator Sponsor

You must be logged in to vote
1 reply
@romaingyh
Comment options

Answer selected by romaingyh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants