Skip to content

Commit

Permalink
fix: viewModelScope now is provider
Browse files Browse the repository at this point in the history
  • Loading branch information
y9san9 committed Feb 3, 2024
1 parent ee0c76d commit f81da14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public inline fun <reified T : Any> DI.viewModel(crossinline factory: DI.() -> T
val vm = object : DIViewModel<T>() {}

val di = this@viewModel + di {
val viewModelScope by constant(vm.viewModelScope)
val viewModelScope by provider { vm.viewModelScope }
}

vm.apply {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ composeRuntime = "1.3.3"
composeCompiler = "1.5.6"
lifecycle = "2.6.1"

mdi = "0.0.30"
mdi = "0.0.31"

[libraries]

Expand Down

0 comments on commit f81da14

Please sign in to comment.