---
title: "Discussion on \"Avoid race conditions in StateFlow\" | Hashnode"
description: "Discussion on \"Avoid race conditions in StateFlow\". Nowadays, when everyone is trying out the great Jetpack Compose, it is most likely that you will use the MVI architectural pattern and expose one single state object from the ViewModel to an Activity. The beauty of this is there is a single source of..."
url: "https://hashnode.com/posts/avoid-race-conditions-in-stateflow/62ba0f4d3f3c29d732650e7e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Avoid race conditions in StateFlow](https://tanuj-08.hashnode.dev/avoid-race-conditions-in-stateflow?utm_source=hashnode&utm_medium=feed)

Nowadays, when everyone is trying out the great Jetpack Compose, it is most likely that you will use the MVI architectural pattern and expose one single state object from the ViewModel to an Activity. The beauty of this is there is a single source of...

Jun 27, 2022 · 3 min read · tanuj-08.hashnode.dev  
Read the article

-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#jetpack-compose](https://hashnode.com/tag/jetpack-compose)
-   [#android](https://hashnode.com/tag/android)
-   [#android-app-development](https://hashnode.com/tag/android-app-development)

## Written by

[Tanuj Soni](https://hashnode.com/@tanuj08)

@tanuj08 · India

  
[View profile](https://hashnode.com/@tanuj08)

Android developer @ Helpshift

Software Engineer working as an Android Engineer at Helpshift, I. have experience in Android, Jetpack Compose, Kotlin Multiplatform.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
