# How derivedStateOf Works in Jetpack Compose's Snapshot System

DevFeed: [How derivedStateOf Works in Jetpack Compose's Snapshot System](<https://devfeed.tech/articles/how-derivedstateof-works-a-deep-d-er-ive-30529.md>)

Original publisher: [Read original article](<https://blog.zachklipp.com/how-derivedstateof-works-a-deep-d-er-ive/>)

Author: Zach Klippenstein

Published: 2024-07-16T16:58:52Z

Content type: tutorial

Language: en

Sources: [Zach Klippenstein's Blog](<https://devfeed.tech/sources/zach-klippenstein-s-blog.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [reactive](<https://devfeed.tech/topics/reactive.md>), [Library](<https://devfeed.tech/topics/library.md>), [factory function](<https://devfeed.tech/topics/factory-function.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [code](<https://devfeed.tech/tags/code.md>), [compose](<https://devfeed.tech/tags/compose.md>), [compose-state-series](<https://devfeed.tech/tags/compose-state-series.md>), [function](<https://devfeed.tech/tags/function.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [reactive](<https://devfeed.tech/tags/reactive.md>), [snapshots](<https://devfeed.tech/tags/snapshots.md>), [state](<https://devfeed.tech/tags/state.md>)

## AI overview

This tutorial explains how derivedStateOf works within Jetpack Compose's reactive snapshot system. It introduces the returned object, related concepts such as restartable functions and state dependencies, and the role of state-derived calculations, using Compose source code and examples.

## Source excerpt

Compose's snapshot system is really neat. Once you know how it works, you can do some cool tricks with it, and derivedStateOf is a rich example