This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-25
Channels
- # babashka (77)
- # beginners (107)
- # calva (20)
- # cider (2)
- # clj-kondo (7)
- # clojure (63)
- # clojure-australia (2)
- # clojure-europe (75)
- # clojure-germany (10)
- # clojure-italy (3)
- # clojure-nl (3)
- # clojure-serbia (15)
- # clojure-spain (2)
- # clojure-uk (24)
- # clojurescript (54)
- # clojureverse-ops (3)
- # cursive (20)
- # datahike (4)
- # datalog (5)
- # datascript (8)
- # datomic (13)
- # emacs (2)
- # fulcro (1)
- # graalvm (2)
- # instaparse (1)
- # jobs (2)
- # luminus (1)
- # malli (7)
- # off-topic (28)
- # pathom (6)
- # pedestal (2)
- # re-frame (5)
- # reagent (9)
- # remote-jobs (4)
- # rewrite-clj (4)
- # ring (19)
- # shadow-cljs (2)
- # spacemacs (2)
- # sql (10)
- # tools-deps (6)
- # xtdb (12)
Am I using dr/change-route!
wrong?
Here’s what I’m doing:
;; Where I do it:
(dr/change-route! this (dr/path-to TagPage "my-id"))
;; My component
(defsc TagPage [this {:keys [node/id] :as rest}]
{:ident :node/id
:query [:node/id :node/name]
:initial-state (fn [{:node/keys [id]}]
{:node/id id
:node/name ""})
:route-segment ["page" :node-id]
:will-enter (fn [_app {:keys [node-id]}]
(log/info "Here it is: " node-id)
(dr/route-immediate [:node/id node-id]))}
;; Render logic
)
;; The warning I'm getting:
[com.fulcrologic.fulcro.algorithms.indexing:103] - component .../TagPage's ident ([:node/id nil]) has a `nil` second element. This warning can be safely ignored if that is intended. Props were [:node/id "my-id"]
It seems like it’s giving the component the parameters [:node/id "my-id"]
as opposed to {:node/id "my-id"}
I can’t figure out why?