<Jetpack Compose Navigation and passing a data cla...
# stackoverflow
u
Jetpack Compose Navigation and passing a data class with a companion Object I have a data class with a companion object that I want to pass via currentBackStackEntry in navContoller in Jetpack Compose, like tso navController.currentBackStackEntry?.savedStateHandle?.set("arg", item) But I am getting an exception: java.lang.IllegalArgumentException: Object of type blablabla$Companion is not supported for navigation arguments. I don't care if the companion object is passed or not; possible to mark it somehow to be ignored by the navigation?