1package soy.iko.opencode.ui
3import androidx.lifecycle.ViewModel
4import androidx.lifecycle.viewmodel.CreationExtras
5import androidx.lifecycle.viewmodel.initializer
6import androidx.lifecycle.viewmodel.viewModelFactory
9 * Tiny bridge between manual DI and Compose's `viewModel()`. Builds a
10 * [androidx.lifecycle.ViewModelProvider.Factory] from a plain constructor lambda.
12inline fun <reified VM : ViewModel> vmFactory(
13 crossinline create: (CreationExtras) -> VM,
15 initializer { create(this) }
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list