Skip to content

Instantly share code, notes, and snippets.

@lelandrichardson
Created August 27, 2020 21:55
Show Gist options
  • Save lelandrichardson/d9b6c5e88e00ef61202ce9549c742719 to your computer and use it in GitHub Desktop.
Save lelandrichardson/d9b6c5e88e00ef61202ce9549c742719 to your computer and use it in GitHub Desktop.
fun App($composer: Composer) {
val result = getData()
if (result == null) {
$composer.start(123)
Loading(...)
$composer.end()
} else {
$composer.start(456)
Header(result)
Body(result)
$composer.end()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment