From bdc708e6583f5e7e1fa7be4f35821c1d4bc09796 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 24 Feb 2026 17:01:25 -0500 Subject: [PATCH] Fixes stability of the feedstate --- .../com/vitorpamplona/amethyst/commons/ui/feeds/FeedState.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/ui/feeds/FeedState.kt b/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/ui/feeds/FeedState.kt index 8a0a3e8648..f46ac43ea8 100644 --- a/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/ui/feeds/FeedState.kt +++ b/commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/ui/feeds/FeedState.kt @@ -28,14 +28,18 @@ import kotlinx.coroutines.flow.MutableStateFlow @Stable sealed class FeedState { + @Stable object Loading : FeedState() + @Stable class Loaded( val feed: MutableStateFlow>, ) : FeedState() + @Stable object Empty : FeedState() + @Stable class FeedError( val errorMessage: String, ) : FeedState()