mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
refactor(ui): Replace waitForState and shareLatest with lifecycle-aware state collection
Add collectAsStateWithLifecycle for all Compose state collection (except Glance widgets). Add asLiveState() extension to ViewModel2 as a simpler replacement for shareLatest(scope = vmScope). Remove custom waitForState helper and shareLatest utility.
This commit is contained in:
@@ -112,6 +112,7 @@ fun DependencyHandlerScope.addCompose() {
|
||||
|
||||
implementation("androidx.activity:activity-compose:1.12.1")
|
||||
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.5")
|
||||
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.8.5")
|
||||
|
||||
implementation("androidx.hilt:hilt-navigation-compose:1.3.0-alpha01")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user