improve flow as state functionality

This commit is contained in:
2023-01-29 12:28:22 +06:00
parent 0c8bec4c89
commit 83d5d3faf4
4 changed files with 60 additions and 18 deletions

View File

@@ -0,0 +1,6 @@
package dev.inmo.micro_utils.common.compose
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.derivedStateOf
fun <T> MutableState<T>.asState() = derivedStateOf { this.value }