mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Trying stuff
This commit is contained in:
parent
ba9f1f46f4
commit
0ec2708dba
1 changed files with 3 additions and 2 deletions
|
@ -15,12 +15,13 @@ import kotlinx.coroutines.flow.asStateFlow
|
|||
import kotlinx.coroutines.flow.collectLatest
|
||||
import kotlinx.coroutines.flow.update
|
||||
import okhttp3.internal.toImmutableList
|
||||
import uy.kohesive.injekt.injectLazy
|
||||
import uy.kohesive.injekt.Injekt
|
||||
import uy.kohesive.injekt.api.get
|
||||
|
||||
class ExtensionRepoViewModel :
|
||||
ViewModel() {
|
||||
|
||||
private val sourcePreferences: SourcePreferences by injectLazy()
|
||||
private val sourcePreferences = Injekt.get<SourcePreferences>()
|
||||
private val repository = ExtensionRepoRepository(sourcePreferences)
|
||||
private val mutableRepoState: MutableStateFlow<ExtensionRepoState> = MutableStateFlow(ExtensionRepoState.Loading)
|
||||
val repoState: StateFlow<ExtensionRepoState> = mutableRepoState.asStateFlow()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue