Navigation Compose in the Navigation Component now has a full type safe system based on Kotlin Serialization. It provides a way to define navigation graphs using Kotlin DSL and eliminates the need for manual code generation. Various solutions have been recommended to minimize the manually written code in Navigation Compose.
Table of contents
Navigation Compose meet Type SafetyKotlin DSL? What’s that for?Kotlin code, but at what cost?Compile time type safety thenSo many ways to generate codeWhy Kotlin SerializationShow me the codeRoute vs Route PatternsCustom typesGo forth with safetySort: