Skip to content

Commit

Permalink
Don't expose lifecycleAwareLazy in viewModel return type (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
elihart committed Jan 12, 2022
1 parent 112433a commit 627b828
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -211,7 +211,7 @@ inline fun <T, reified VM : MavericksViewModel<S>, reified S : MavericksState> T
inline fun <T, reified VM : MavericksViewModel<S>, reified S : MavericksState> T.viewModel(
viewModelClass: KClass<VM> = VM::class,
crossinline keyFactory: () -> String = { viewModelClass.java.name }
) where T : ComponentActivity = lifecycleAwareLazy(this) {
): Lazy<VM> where T : ComponentActivity = lifecycleAwareLazy(this) {
MavericksViewModelProvider.get(
viewModelClass = viewModelClass.java,
stateClass = S::class.java,
Expand Down

0 comments on commit 627b828

Please sign in to comment.