Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change initial getAllConvertHistory position #39

Merged
merged 1 commit into from
Dec 4, 2022
Merged

Change initial getAllConvertHistory position #39

merged 1 commit into from
Dec 4, 2022

Conversation

kosenda
Copy link
Owner

@kosenda kosenda commented Dec 4, 2022

エラー

起動してすぐに履歴の画面に遷移しようとすると以下のエラーが発生し落ちる。
java.lang.IllegalStateException: Reading a state that was created after the snapshot was taken or in a snapshot that has not yet been applied

変更内容

履歴表示する際に最初に履歴取得する処理の宣言位置をviewModelからscreen(Composable)に変更した

参考サイト

https://stackoverflow.com/questions/66891349/java-lang-illegalstateexception-when-using-state-in-android-jetpack-compose

@kosenda kosenda merged commit d805eec into main Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant