Skip to content

Commit

Permalink
refactor: refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
ImaginativeShohag committed Aug 20, 2024
1 parent db44f8b commit e9f6d20
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.catch
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.emptyFlow
Expand All @@ -65,8 +65,7 @@ class DataFetchAndPagingViewModel @Inject constructor(
// ----------------------------------------------------------------

private val _state = MutableStateFlow(ListViewState())
val state: StateFlow<ListViewState>
get() = _state
val state = _state.asStateFlow()

// ----------------------------------------------------------------

Expand Down

0 comments on commit e9f6d20

Please sign in to comment.