Remove runBlocking call to restore sessions when the app starts (#6193)

* Remove `runBlocking` call to restore sessions when the app starts

Sadly, to do this we need to manually handle restoring the state from Appyx using internal values. At least it doesn't seem like they're going to change any time soon (or ever).

This should take care of a few ANRs, although it may make loading the initial state a bit slower

* Add `ReplaceAllOperation` for state restoration

* Add warning comment for Appyx dependency
This commit is contained in:
Jorge Martin Espinosa
2026-02-24 10:51:43 +01:00
committed by GitHub
parent beaf59ad97
commit dfde64b466
4 changed files with 118 additions and 26 deletions
+2
View File
@@ -42,6 +42,8 @@ serialization_json = "1.10.0"
coil = "3.3.0"
# Rollback to 1.0.4, 1.0.5 has this issue: https://github.com/airbnb/Showkase/issues/420
showkase = "1.0.5"
# There is some custom logic in `RootFlowNode` that may break because it reuses some Appyx internal APIs.
# When upgrading this version, check state restoration still works fine.
appyx = "1.7.1"
sqldelight = "2.2.1"
wysiwyg = "2.41.1"