Trying to migrate a Wear app to Wear Compose Navigation but facing
java.lang.IllegalArgumentException: CreationExtras must have a value by SAVED_STATE_REGISTRY_OWNER_KEY
I have all deps to the latest version and use Compose 1.7 with a recent snapshot. I'm completely lost at figuring out how to debug this.
Tolriq
05/23/2024, 7:46 PM
So it seems it's tied to horologist volume viewmodel. When debugging the hilt is first called with the extra filled. Then called again with empty extra causing the crash :(
y
yschimke
05/24/2024, 7:57 AM
Do you have a repro? Are you using ComponentActivity?
t
Tolriq
05/24/2024, 8:00 AM
I am, I found the cause it is ultra strange, it was because of a missing other dependency. I have no idea why the hilt creation was triggered again without extra instead of crashing or anything else that could have happened.
Tolriq
05/24/2024, 8:00 AM
So it's a user issue, but WTF the result, I nearly lost my hairs on this one.