I'm trying to use type-safe navigation in compose multiplatform but the app crashes when I use a serializable data class. It works when I convert it to a regular object. 🧵
Rafs
12/25/2024, 11:52 AM
Left is the error message and right is my route definition. I have applied all the serialization gradle plugins
a
agrosner
12/25/2024, 12:26 PM
How are you calling the nav controller?
agrosner
12/25/2024, 12:26 PM
Navigate
s
Stylianos Gakis
12/25/2024, 1:27 PM
You're probably navigating to the class itself without instantiating an object of it, hence it thinks you're trying to navigate to the companion object