kotlin-state-machine
kotlin-state-machine copied to clipboard
Subgraphs
Ability to specify a "sub graph" that is launched when arriving in a given state. Exiting the sub-graph would be a transition valid on the base node that launched it.
For example - landing on "payment" node would launch a graph that handles the whole payment workflow, exiting with "payment successful" or "payment failed" from the original node.
With subgraphs and a decent method for composition, it should be able to model a lot of the concepts that this Droidcon talk mentions. https://www.droidcon.com/2022/09/29/model-driven-navigation-with-jetpack-compose-from-zero-to-hero/