This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-20
Channels
- # announcements (10)
- # aws (4)
- # babashka (71)
- # beginners (30)
- # calva (61)
- # cherry (1)
- # cider (16)
- # clj-kondo (3)
- # clj-on-windows (4)
- # cljsrn (1)
- # clojure (28)
- # clojure-austin (2)
- # clojure-bay-area (1)
- # clojure-europe (45)
- # clojure-hungary (1)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-sweden (14)
- # clojure-uk (11)
- # clojurescript (39)
- # core-async (3)
- # core-typed (11)
- # datomic (68)
- # fulcro (7)
- # keechma (1)
- # lsp (29)
- # malli (5)
- # off-topic (57)
- # other-languages (13)
- # pathom (4)
- # rdf (7)
- # reagent (7)
- # reitit (6)
- # releases (1)
- # schema (8)
- # shadow-cljs (86)
- # sql (22)
- # squint (1)
- # vim (8)
- # xtdb (12)
it seems like fulcro rad history made the choice to not use hashed URLs, has anyone managed to tweak it to work with it? I tried adding a "#" route-segment to my root component but unfortunately it doesn't work, using the code here for instance https://github.com/fulcrologic/fulcro/blob/master/src/workspaces/com/fulcrologic/fulcro/cards/nested_dynamic_routing_tree_cards.cljs I get
timbre_support.cljs:80 ERROR [com.fulcrologic.fulcro.routing.dynamic-routing:684] - Could not find route targets for new-route ["#" "a" "a2"] See
(the main motivation for hashed URL being that the browser will ignore them and won't hit the server / the server doesn't have to support the various endpoints)
ok I found out that it can actually configured as an argument to html5 history
I dont like though that there is a random param in between the root and the hashbased part http://localhost:3000/?_rp_=WyJeICJd&#/a
https://clojurians.slack.com/archives/C68M60S4F/p1637772708389800?thread_ts=1637765422.389000 That's just an empty map, but yeah, would be nice if it didn't show that.
yeah I figured it wasn't random but there is two oddities with it:
• it appears before the hashed URL instead of after
• it contains params that are already URL encoded, for instance if the URL is #/person/3
, 3 being person-id, it will be encoded again in this _rp_
URL param
I'm wondering what the rationale is for this _`_rc_`_ stuff instead of regular query-params (and not mixing them with path params)