mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-07 17:19:32 +00:00
improve flow as state functionality
This commit is contained in:
@@ -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 }
|
Reference in New Issue
Block a user