mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-11-02 01:52:57 +00:00
improve flow as state functionality
This commit is contained in:
1 parent
0c8bec4c89
commit
83d5d3faf4
4 files changed
+60
-18
No files matched your search
+6
@@ -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