# How ViewModels survive configuration changes

DevFeed: [How ViewModels survive configuration changes](<https://devfeed.tech/articles/how-viewmodels-survive-configuration-changes-37172.md>)

Original publisher: [Read original article](<https://arkadiuszchmura.com/posts/how-viewmodels-survive-configuration-changes/>)

Published: 2022-04-26T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [Android](<https://devfeed.tech/topics/android.md>), [android-development](<https://devfeed.tech/topics/android-development.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [Development](<https://devfeed.tech/topics/development.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [lifecycle](<https://devfeed.tech/tags/lifecycle.md>)

## AI overview

This tutorial examines how Android ViewModels retain UI-related data across configuration changes. It explores the Android Architecture Components implementation and explains the Kotlin APIs used to create ViewModel instances, including delegated properties, lazy initialization, lambdas, and extension functions.

## Source excerpt

Let's explore their implementation details to see how they achieve this.