v1.0.0-beta-003
AngelMunoz
released this
07 Mar 05:34
·
64 commits
to main
since this release
In order to enable navigations within the handlers it has been added as a parameter
// Before
Route.define<_>("home", "/", (fun _ ->
// unable to navigate here as you'd need a router reference and it can't be created before routes are defined
))
// After
Route.define<_>("home", "/", (fun (_, nav) ->
return
UIElement
.content(
Label().text("My Text")
Button().onClick(fun _ -> nav.NavigateByName("home") |> ignore)
)
))
Full Changelog: v1.0.0-beta-002...v1.0.0-beta-003