Skip to content

Instantly share code, notes, and snippets.

@mcatta
Last active October 26, 2022 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcatta/62652d8136680c6fca27a603bd88a0f1 to your computer and use it in GitHub Desktop.
Save mcatta/62652d8136680c6fca27a603bd88a0f1 to your computer and use it in GitHub Desktop.
@ViewModelScoped
class GithubStateMachine @Inject constructor(
private val githubRepository: GithubRepository
) : FlowReduxStateMachine<GithubState, GithubAction>(
initialState = GithubState.ContentState(owner = "", repositories = emptyList())
) {
init {
spec {
// spec
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment