Deriving derived state: derivedStateOf explained
Jetpack Compose’s state library has a powerful but tricky tool in derivedStateOf. Much of the time you don’t need it at all. It’s deceptively expensive to use and complex to implement. To find out why we’ll derive it from first principles. Starting with the simplest solution for a typical use case, we’ll walk through how different parts of the snapshot state system can be leveraged to improve the solution, eventually ending up at derivedStateOf.
Elements of Modifiers in Compose
Modifiers are a foundational aspect of Jetpack Compose. When coding with everyone’s favourite declarative UI framework, you’ll constantly reach out into the rich grab bag of Modifiers that Compose provides. You don’t really need to understand how Modifiers’ internals work to be productive!
But sometimes, you’ll need something that’s not provided out of the box, and you may find yourself wondering what is the best approach to take to create your custom Modifier. This talk will guide you through the inner workings of a Modifier, the kinds of custom Modifiers you can create and when to use them, and provide a case study about implementing a Modifier and integrating it with the rest of the framework.
droidcon NYC 2022 Sessionize Event
droidcon San Francisco 2022 Sessionize Event
droidcon NYC 2019 Sessionize Event
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top