# Understanding Composition and Side Effects

DevFeed: [Understanding Composition and Side Effects](<https://devfeed.tech/articles/understanding-composition-and-side-effects-31886.md>)

Original publisher: [Read original article](<https://okmanideep.me/understanding-composition-and-side-effects/>)

Author: Manideep Polireddi

Published: 2022-04-01T18:00:00Z

Content type: tutorial

Language: en

Sources: [@okmanideep](<https://devfeed.tech/sources/okmanideep.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [ui](<https://devfeed.tech/topics/ui.md>), [Framework](<https://devfeed.tech/topics/framework.md>)

Tags: [declarative](<https://devfeed.tech/tags/declarative.md>), [functions](<https://devfeed.tech/tags/functions.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [order](<https://devfeed.tech/tags/order.md>), [shows](<https://devfeed.tech/tags/shows.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

A tutorial on how Jetpack Compose invokes declared functions and manages side effects during composition. It explains execution and disposal order, including LIFO disposal, transitions between incoming and outgoing side effects, and behavior when animated changes delay disposal.

## Source excerpt

Important aspect to any framework that relies on functions is to understand when they are invoked. Read along to get a crystal clear understanding