improve flow as state functionality

This commit is contained in:
InsanusMokrassar committed 2023-01-29 12:28:22 +06:00
1 parent 0c8bec4c89
commit 83d5d3faf4
4 files changed
+60 -18

No files matched your search

@@ -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 }