# ViewModel and LiveData: State-Management Pitfalls in Google's Architecture Components Samples

DevFeed: [ViewModel and LiveData: State-Management Pitfalls in Google's Architecture Components Samples](<https://devfeed.tech/articles/architecture-components-i-m-not-a-purist-but-25440.md>)

Original publisher: [Read original article](<https://hannesdorfmann.com/android/arch-components-purist/>)

Author: Hannes Dorfmann

Published: 2017-06-25T09:00:00Z

Content type: opinion

Language: en

Sources: [Hannes Dorfmann](<https://devfeed.tech/sources/hannes-dorfmann.md>)

Topics: [Programming](<https://devfeed.tech/topics/programming.md>), [reactive](<https://devfeed.tech/topics/reactive.md>), [Google](<https://devfeed.tech/topics/google.md>), [RxJava](<https://devfeed.tech/topics/rxjava.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [google](<https://devfeed.tech/tags/google.md>), [livedata](<https://devfeed.tech/tags/livedata.md>), [mvi](<https://devfeed.tech/tags/mvi.md>), [mvvm](<https://devfeed.tech/tags/mvvm.md>), [pitfalls](<https://devfeed.tech/tags/pitfalls.md>), [reactive](<https://devfeed.tech/tags/reactive.md>), [reactive-programming](<https://devfeed.tech/tags/reactive-programming.md>), [rxjava](<https://devfeed.tech/tags/rxjava.md>), [state-management](<https://devfeed.tech/tags/state-management.md>), [viewmodel](<https://devfeed.tech/tags/viewmodel.md>)

## AI overview

An opinionated review of ViewModel and LiveData in Google's Architecture Components samples, focusing on state management, pagination, lifecycle awareness, and differences from RxJava.

## Source excerpt

At I/O 2017 Google surprised us with a new initiative: Architecture Components. I really appreciate this initiative. In this blog post I would like to share my thoughts about ViewModel and some pitfalls you might stumble upon when using ViewModel and LiveData by taking a look at the official Google samples.