Skip to content
Discussion options

You must be logged in to vote

From my point of view, using sealed classes for states (e.g. the LCE pattern, aka Loading/Content/Error) totally makes sense. Usually Loading and Error states are pretty simple to be extracted as a separate components.

However, extracting Loading state to a separate component may be useful, e.g. in cases when the navigation graph depends on the data being loaded. An example of this could be a server-driven sign-in/sign-up flow, when the server tells the client which screens should be shown in which order, etc.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sergejsha
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #449 on August 17, 2023 12:34.