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"
...
}

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class RouteInfo

Properties

Link copied to clipboard

A property which indicates if this current page is being rendered as part of a Kobweb export.

Link copied to clipboard
Link copied to clipboard