Last active
October 22, 2018 12:13
-
-
Save luddilo/615ce3efe8e58699233ef66717f07766 to your computer and use it in GitHub Desktop.
Share behavior between response handlers and wizard buttons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val IT_HAPPENED = "ItHappened" | |
onButton("Make it happen") { | |
raise(IT_HAPPENED) | |
} | |
onResponse<ItHappenedIntent> { | |
raise(IT_HAPPENED) | |
} | |
onEvent(IT_HAPPENED) { | |
// Handle it | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment