slackhq/circuit

Counter example not keeping state/count

brh opened this issue · 0 comments

brh commented

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