SrSouza
05/09/2021, 7:52 PMBig Chungus
05/09/2021, 7:56 PMspierce7
05/09/2021, 8:35 PMMrPowerGamerBR
05/09/2021, 8:50 PMJSON.parse()
is utterly broken in Kotlin/JS.
Yes, it works, but that doesn't mean it is a nice developer experience because you have a multitude of issues with it, off the top of my head: You can't serialize Longs, you can't use any Kotlin functions (if you are trying to deserialize a List), so on and so forth. Kotlinx Serialization is a god send for the JS target so it is a bummer that it doesn't work yet.
What seems to work fine (from a tip by @SrSouza) is creating a separate module with the Serialization plugin, and making the Compose project depend on that module. But then again, I haven't tested it too much yet but it seems to work for deserialization.MrPowerGamerBR
05/09/2021, 8:59 PM