From f3f9920bfb4aab8138230599b62cea27f1fd6d2f Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 4 Dec 2023 15:08:52 +0600 Subject: [PATCH] deprecate FlowState --- CHANGELOG.md | 4 ++++ .../dev/inmo/micro_utils/coroutines/compose/FlowState.kt | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c676b569b69..6b2f1eb4d46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 0.20.18 +* `Coroutines`: + * `Compose`: + * Deprecate `FlowState` due to its complexity in fixes + ## 0.20.17 * `Versions`: diff --git a/coroutines/compose/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/compose/FlowState.kt b/coroutines/compose/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/compose/FlowState.kt index 487f1065564..99c8ae1b58f 100644 --- a/coroutines/compose/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/compose/FlowState.kt +++ b/coroutines/compose/src/commonMain/kotlin/dev/inmo/micro_utils/coroutines/compose/FlowState.kt @@ -12,6 +12,7 @@ import kotlinx.coroutines.Dispatchers * This type works like [MutableState], [kotlinx.coroutines.flow.StateFlow] and [kotlinx.coroutines.flow.MutableSharedFlow]. * Based on [SpecialMutableStateFlow] */ +@Deprecated("Will be removed soon") class FlowState( initial: T, internalScope: CoroutineScope = CoroutineScope(Dispatchers.Default)