-
I am trying to integrate the counter example into the KMM project template. I have it working so far but on Android when I rotate the emulator it loses the count. So, I know in the docs it talks about a Parcelizer issue, I tried to overcome this by injecting the AndroidCounterScreen as can be seen in AndroidModule.kt line 50. But for whatever reason, when I rotate the presenter is recreated everytime. Code here -> https://github.com/brh/KMPRadio/tree/working |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You need to use |
Beta Was this translation helpful? Give feedback.
You need to use
rememberRetained
to survive rotation, asremember
is lost when the current composition goes away.