issues
search
shinonome-inc
/
mobile_sakai
0
stars
1
forks
source link
FeedPageとMyPageのerrorView表示バグ
#45
Closed
yasyun
closed
2 years ago
yasyun
commented
2 years ago
バグ内容 ・FeedPageとMyPageにおいて、ネットワークエラーで情報を取得できなかった(
isEmpty
)とき以外にも、FeedPageでは検索結果がなかったとき、MyPageでは未ログインで情報を取得できなかったときにも、ネットワークエラーのerrorViewが誤作動してしまう
yasyun
commented
2 years ago
修正方法 ・errorViewを表示するフラグを
data.isEmpty
のif分で制御しているため、条件を加えることによって改善できることを確認済み ・全ての実装終了後のテスト前に、別ブランチで修正する
yasyun
commented
2 years ago
追加内容 FeedPageとMyPageだけでなく、FollowPageにおいても表示される人がいない場合にerrorViewが誤作動してしまう。
yasyun
commented
2 years ago
修正内容
data.isEmpty
だった場合にすぐ
errorView
を表示するのではなく、ネットワークの接続状態をチェックしてから
errorView
を表示するようにすることで改善した。
isEmpty
)とき以外にも、FeedPageでは検索結果がなかったとき、MyPageでは未ログインで情報を取得できなかったときにも、ネットワークエラーのerrorViewが誤作動してしまう