Hi! I'm using ChildStack with `duplicateConfigura...
# decompose
p
Hi! I'm using ChildStack with
duplicateConfigurationsEnabled = true
. Decompose 3.4.0. I received a strange crash report. So far, it has only occurred once in a large enough audience once, so it seems pretty rare. From the Sentry logs, it seems to happen when the second config that duplicates the active one is pushed. However, I haven't been able to reproduce it by reproducing the navigation state. Have you ever faced something similar? If so, could you give me an idea of what conditions could cause it to occur?
Copy code
java.lang.IllegalArgumentException: Key my.config.Class_lzkud was used multiple times 
    at x7.DefaultAnalyticsCollector$$ExternalSyntheticLambda51.m(r8-map-id-17062ac5f35fa1fe1bf080d3d788b321404efbda0623a2bff8594140eed67af0:0)
    at androidx.compose.runtime.saveable.SaveableStateHolderImpl.SaveableStateProvider$lambda$0$1$0(SaveableStateHolder.kt:88)
a
Unfortunately, this is a known issue on versions older than 3.5.x. ChildStack and Children composable functions both use configuration class + child index + configuration hash code as a child key for saving the UI state. The crash happens when keys are clashing. This should be fixed in 3.5.x.
❤️ 1