callstack / callstack/react-native-pager-view

Expecting View State but received class androidx.recyclerview.widget.RecyclerView$SavedState instead

オープン
#336 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
android bug
主要言語
TypeScript
スター
3.4k
フォーク
476
平均マージ
10日 21時間
マージ済み PR(30日)
2

説明

## Environment

![image](https://user-images.githubusercontent.com/4283871/115631798-a37a0880-a35a-11eb-94c1-c7988b35dc5f.png)

## Description

I think the app is crashing on start but its not easily replicable.
I believe the problem is happening because ViewPager inflate views and assign dynamically-generated ids to them. (ref: https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-collection-release/viewpager2/src/main/java/androidx/viewpager2/widget/ViewPager2.java?source=post_page---------------------------#146)

Is there anything we can do to mitigate this crash?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Issue のクラッシュタイトル、スクリーンショット、リンクされている AndroidX ViewPager2 のリファレンスから始め、動的に生成される ViewPager2 の ID が RecyclerView の状態復元とどのように相互作用するかを調査します。起動時に断続的に発生するクラッシュを確認し、再現可能な軽減策を特定します。問題が解決したときの再現手順と期待される動作を文書化します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, react-native
領域
mobile-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。