# Be careful when converting Flow to LiveData

DevFeed: [Be careful when converting Flow to LiveData](<https://devfeed.tech/articles/be-careful-when-converting-flow-to-livedata-37158.md>)

Original publisher: [Read original article](<https://arkadiuszchmura.com/posts/be-careful-when-converting-flow-to-livedata/>)

Published: 2022-12-31T00:00:00Z

Content type: tutorial

Language: en

Sources: [Arkadiusz Chmura](<https://devfeed.tech/sources/arkadiusz-chmura.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [ui](<https://devfeed.tech/topics/ui.md>), [data](<https://devfeed.tech/topics/data.md>), [clients](<https://devfeed.tech/topics/clients.md>)

Tags: [clients](<https://devfeed.tech/tags/clients.md>), [code](<https://devfeed.tech/tags/code.md>), [flow](<https://devfeed.tech/tags/flow.md>), [function](<https://devfeed.tech/tags/function.md>), [livedata](<https://devfeed.tech/tags/livedata.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

This tutorial explains a caveat when converting Kotlin Flow to LiveData: the resulting LiveData emits upstream updates only while it has an active observer. Without an observer, it remains inactive and may not receive the latest value.

## Source excerpt

LiveData created this way will only emit data when it has active observers.