Good Morning, I am trying to deal with route parameters. Looking at the https://book.fulcrologic.com/#_route_parameters, it seem to point to legacy dependency, [com.fulcrologic.fulcro.routing.legacy-ui-routers :as r]
Is that still the approach I should be taking or is there a newer way to access Route Parameters?
Basically, I am working on a recover password page that loads due to click on email link with url and token parameter. Can anyone point me to an example of how the url token parameter can be used?
You mean route params supplied to change-route? Id expect :will-enter can see them. They are also likely stored in the router UISM and there is likely an easy way to obtain them
Routing has nothing to do with URL - you need to connect them manually. Look at how RAD does it.
https://github.com/fulcrologic/fulcro-rad/blob/develop/src/main/com/fulcrologic/rad/routing/html5_history.cljc and https://github.com/fulcrologic/fulcro-rad-demo/blob/develop/src/shared/com/example/client.cljs#L32 and https://github.com/fulcrologic/fulcro-rad-demo/blob/develop/src/shared/com/example/client.cljs#L58