Fork me on GitHub
#fulcro
<
2021-06-11
>
Timofey Sitnikov11:06:03

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?

Timofey Sitnikov11:06:47

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?

Jakub Holý (HolyJak)19:06:52

Routing has nothing to do with URL - you need to connect them manually. Look at how RAD does it.

Timofey Sitnikov02:06:53

Hmm, seems like the parameters should be available somewhere in (defsc ...

Jakub Holý (HolyJak)18:06:44

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