compose-navigation3
Installation
SKILL.md
Compose Navigation 3
Overview
Jetpack Navigation 3 (Nav3) replaces the NavController / NavGraphBuilder model with a state-first API:
| Nav2 concept | Nav3 replacement |
|---|---|
NavController |
Custom navigator class backed by a MutableBackStack<NavKey> |
NavGraphBuilder + composable<> |
EntryProviderScope<NavKey> + entry<> |
NavHost |
NavDisplay |
Bundle arguments |
@Serializable data class implementing NavKey |
savedStateHandle result |
ResultStore + CompositionLocal |
Core rule: ALL navigation logic lives in the app module. Feature modules expose Screen composables only — they have no dependency on Nav3 types.