This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-11
Channels
- # announcements (38)
- # babashka (5)
- # beginners (26)
- # calva (26)
- # cider (1)
- # clj-kondo (36)
- # cljdoc (17)
- # cljs-dev (31)
- # clojure (39)
- # clojure-australia (9)
- # clojure-berlin (2)
- # clojure-dev (31)
- # clojure-europe (22)
- # clojure-france (3)
- # clojure-italy (7)
- # clojure-nl (5)
- # clojure-norway (5)
- # clojure-spec (28)
- # clojure-uk (9)
- # clojured (20)
- # clojurescript (24)
- # community-development (2)
- # conjure (32)
- # core-async (7)
- # cryogen (6)
- # datomic (2)
- # duct (6)
- # fulcro (6)
- # graalvm (53)
- # introduce-yourself (2)
- # jobs (2)
- # luminus (2)
- # nrepl (2)
- # off-topic (35)
- # re-frame (17)
- # reveal (8)
- # shadow-cljs (27)
- # testing (2)
- # xtdb (8)
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?
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
Hmm, seems like the parameters should be available somewhere in (defsc ...
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