PageContext
Various contextual information useful for a page.
Access it using rememberPageContext either in the page itself or within any composable nested inside of it.
@Page
@Composable
fun SettingsPage() {
val ctx = rememberPageContext()
val userName = ctx.route.params["username"] ?: "Unknown user"
...
}
Content copied to clipboard