Sign in Go Pro

Android MvRx Fundamentals

Simplify State With Derived Properties

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



Managing state can get complex quickly. State properties often depend on state properties and manually keeping them in sync is challenging and error prone. Because state classes are just Kotlin data classes, you can create additional properties on your state class that are entirely derived from your primary properties defined in your constructor. We call these derived properties. Because derived properties are calculated directly from other state properties, they are guaranteed to be up to date and are easy to test.




There are no comments on this lesson, start the conversation below ...


Lessons in Android MvRx Fundamentals