Skip to content

Commit

Permalink
minimize edit mutation request
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed May 14, 2024
1 parent 60bf0bf commit 148a3ee
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,11 @@ class MediumScreenComponent(
}

launchIO {
listStatus.emitAll(newData.mapNotNull { it.status })
}
launchIO {
watchProgress.emitAll(newData.mapNotNull { it.progress })
}
launchIO {
watchRepeat.emitAll(newData.mapNotNull { it.repeat })
newData.collect { data ->
data.status?.let { listStatus.emit(it) }
data.progress?.let { watchProgress.emit(it) }
data.repeat?.let { watchRepeat.emit(it) }
}
}
}

Expand Down

0 comments on commit 148a3ee

Please sign in to comment.