It took me ages to find this ‘documentation’ on custom
NavType
in Jetpack Navigation.
You shouldn’t have to lean on this too often, as it’s not considered good practice to pass structured data via navigation arguments if you’re using route-based navigation. Instead, it’s better to pass an identifier for your data, and then go and retrieve it from your repository - if you can.
But, if your data isn’t uniquely-identifiable, or it only really exists at the UI layer, then there are times when it can be useful to serialize your structured data and pass it around. That’s where custom