Jetpack Composeの実装思考

Jetpack Composeの実装において考え方や気をつけたいこと

Image for post
Image for post

Single source of truth

Stateless

単一データフロー

Image for post
Image for post
https://developer.android.com/jetpack/compose/mental-model
Image for post
Image for post
https://developer.android.com/jetpack/compose/mental-model

副作用

簡単な実装例(あまり良い例では無いかも)

Image for post
Image for post

Recomposition

処理順

MaterialTheme {
MyText()
MyInput()
MyButton()
}

並行

スキップ

Optimistic

頻繁に実行

まとめ

Written by

Programmer / Gamer / Google Developers Expert for Android, Kotlin / @STAR_ZERO

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store