Fixes stability of the feedstate

This commit is contained in:
Vitor Pamplona
2026-02-24 17:01:25 -05:00
parent 5e2a4b2cef
commit bdc708e658
@@ -28,14 +28,18 @@ import kotlinx.coroutines.flow.MutableStateFlow
@Stable
sealed class FeedState {
@Stable
object Loading : FeedState()
@Stable
class Loaded(
val feed: MutableStateFlow<LoadedFeedState<Note>>,
) : FeedState()
@Stable
object Empty : FeedState()
@Stable
class FeedError(
val errorMessage: String,
) : FeedState()