resolveNavigatable

Resolve the Navigatable for a NavigationEntry.

This replaces the old entry.screen / entry.navigatable direct property that existed before the path-based NavigationEntry migration. The navigatable is looked up by the entry's full path in the navigation module's registered routes.

Usage:

val navigationState by composeState<NavigationState>()
val navigatable = store.resolveNavigatable(navigationState.currentEntry)
val title = navigatable?.titleResource?.invoke() ?: "Home"

Return

The Navigatable, or null if not found

Parameters

entry

The navigation entry to resolve