issues
search
kokoichi206
/
android-engineer-codecheck
Apache License 2.0
0
stars
0
forks
source link
Fat Fragment・ViewModel の解消
#15
Closed
kokoichi206
closed
1 year ago
kokoichi206
commented
1 year ago
Issue 番号
4
(Fat Fragment について理解できてないので Close しない)
対応背景
Fragment, ViewModel が肥大化することによるメンテナンス性の劣化を防ぐ
また、責務以上のことが行われていないか確認する
やったこと
(主に ViewModel について)メソッド・責務の切り出し
ViewModel と View (Fragment) とのデータのやり取りを Flow を通して行うよう変更
ViewModel の持つ状態として Repository のリストのみから、次の3つに変更
Repository のリスト
ローディング状態
エラー発生時のメッセージ
やってないこと
ローディング中・エラー発生時の UI の変更
UI before / after
変化なし
補足
Issue 番号
4
(Fat Fragment について理解できてないので Close しない)
対応背景
やったこと
やってないこと
UI before / after
変化なし
補足