Skip to content

Instantly share code, notes, and snippets.

@burnoo
Created October 13, 2021 12:25
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 burnoo/6641d4818f01f1482819087bb24dd72a to your computer and use it in GitHub Desktop.
Save burnoo/6641d4818f01f1482819087bb24dd72a to your computer and use it in GitHub Desktop.
Cokoin medium 5
@Composable
fun App() {
val globalData = get<AppData>() // uses Global KoinContext
Koin(koinApplication) {
val localData = get<AppData>() // uses Local KoinContext (koinApplication)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment