Hey Domenic, Have been following your Jetpack Compose playlist. Great tutorials. 👍👍 Just wanted to know your views on Kotlin Multi Platform (KMM). Do you think it's the future and would replace Flutter? Should one start learning KMM for cross platform development? Would also like to have KMM playlist from you.
KMM (or any hybrid approach) is a slippery slope. It has its place, and its benefits, but to me it doesn't scale well to production. Incredible for side/passion projects and simple proofs of concept in my opinion. At any larger project/business I think it falls apart quite quickly. You run into many issues that aren't present when you have individual teams (Android vs iOS) that are OUTSIDE of the codebase itself. Things like ownership, bug resolution, package versioning/management, etc. are all new problems that, in my opinion, are not worth any benefit of having a single codebase. It also puts a heavy emphasis on Kotlin developers over any other dev which I don't think is there yet either. I am interested to see how it grows over time, but I don't think it's ready yet or should cause any shift in your day to day. Native will always (for the foreseeable future) be the way 👍
Yeah, that is because we are losing the state when the device rotates. I think if you use rememberSaveable instead of remember it will work fine as you rotate :)