Skip to content

Commit

Permalink
Emit copy of items to ensure flow updating
Browse files Browse the repository at this point in the history
  • Loading branch information
abdrasulov committed Sep 15, 2023
1 parent 09b29de commit bff03d1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ class ManageWalletsService(
}

private fun syncState() {
_itemsFlow.update { items }
_itemsFlow.update {
buildList { addAll(items) }
}
}

private fun handleUpdated(wallets: List<Wallet>) {
Expand Down

0 comments on commit bff03d1

Please sign in to comment.