NavigationPath
A lightweight NavigationNode that wraps a plain route string.
Use this when you need to return a route string from an entry selector but don't have a typed screen or graph object available — for example when navigating to a graph route by its ID.
Example:
rootGraph {
entry(
route = { store ->
val auth = store.selectState<AuthState>().value
if (auth.isAuthenticated) NavigationPath("home") else LoginScreen
},
loadingScreen = AuthLoadingScreen
)
}Content copied to clipboard