https://www.youtube.com/watch?v=XWk_FJm5fEU
A word before we start
- Assume you know compose
- Android perspective but parts will be applicable in a multi-platform context
- Only a brief explanation of Molecule
- Learnings from using Molecule over the past year
@Composable
- Recomposition : Will be evaluated again when inputs change or a state is updated.
- Should either emit content into the composition or return a value, but not both.
- Can only be called from a composable context.
Molecule
→ Build a StateFlow or Flow stream using Jetpack Compose.
You might consider building directly upon this layer if you only need Compose’s tree management abilities, not its UI