commonMain.captain.RouteInfoUtils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of captain-router-compose-core-jvm Show documentation
Show all versions of captain-router-compose-core-jvm Show documentation
A compose router that follows any type of navigator
package captain
import androidx.compose.runtime.Composable
import androidx.compose.runtime.compositionLocalOf
@PublishedApi
internal val LocalRouteInfo = compositionLocalOf?> { null }
@Composable
fun rememberRouteInfo(): RouteInfo? = LocalRouteInfo.current