I'm trying to use type-safe navigation in compose ...
# compose
r
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. 🧵
Left is the error message and right is my route definition. I have applied all the serialization gradle plugins
a
How are you calling the nav controller?
Navigate
s
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
2
r
@Stylianos Gakis this was it. Thank you so much
🦜 1