FYI: `routing-compose:0.2.0` is out with support f...
# compose-web
h
FYI:
routing-compose:0.2.0
is out with support for relative routing and redirecting: https://github.com/hfhbd/routing-compose/releases/tag/v0.2.0
Copy code
redirect("redirect", target = "users", hide = true)
route("users) {
    NavLink(to = "./answer") {
        Text("Relative route to ./answer")
    }
    val router = Router.current
    Input(type = InputType.Button) {
        onClick {
            router.navigate("redirect", hide = true)
        }
        value("Navigate to /users. Check the url.")
    }
}
👍 1
🎉 9
K 16
👍🏾 1
🙏 6