---
title: "Discussion on \"Retryable StateFlow\" | Hashnode"
description: "Discussion on \"Retryable StateFlow\". A common pattern used to observe the state of a feature can look something like this (borrowed from NowInAndroid):\n    ViewModel.kt\n\n    val uiState: StateFlow<MainActivityUiState> = userDataRepositor"
url: "https://hashnode.com/posts/retryable-stateflow/641e02c9c0feba98b392155c"
---

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

Discussion

# [Retryable StateFlow](https://blog.joetr.com/retryable-stateflow?utm_source=hashnode&utm_medium=feed)

A common pattern used to observe the state of a feature can look something like this (borrowed from NowInAndroid): ViewModel.kt val uiState: StateFlow<MainActivityUiState> = userDataRepositor

Mar 24, 2023 · 2 min read · blog.joetr.com  
Updated Apr 29  
Read the article

-   [#android](https://hashnode.com/tag/android)
-   [#stateflow](https://hashnode.com/tag/stateflow)
-   [#coroutines](https://hashnode.com/tag/coroutines)
-   [#kotlin](https://hashnode.com/tag/kotlin)

## Written by

[Joe Roskopf](https://hashnode.com/@joetr)

@joetr · Minneapolis, MN

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

Principal Android Engineer @ Nike

Hey! I’m Joe! I’m an Android developer who is passionate about the human side of software development.

## Responses 1

Markdown supported · ⌘↵ to post

[devArthur 4718](https://hashnode.com/@ArthurGomes)

[Aug 29, 2024](https://hashnode.com/posts/retryable-stateflow/641e02c9c0feba98b392155c/comment/66d055822df2be5df9a0ffe0)

Really usefull, smart and well written.
