This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-23
Channels
- # beginners (81)
- # boot (1)
- # cider (1)
- # cljs-dev (15)
- # cljsrn (1)
- # clojure (27)
- # clojure-europe (9)
- # clojure-hamburg (2)
- # clojure-italy (6)
- # clojure-nl (6)
- # clojure-spec (10)
- # clojure-uk (33)
- # clojurescript (9)
- # clojurex (5)
- # cursive (14)
- # datomic (21)
- # devcards (2)
- # duct (72)
- # figwheel (1)
- # fulcro (6)
- # kaocha (3)
- # leiningen (5)
- # nrepl (10)
- # off-topic (65)
- # parinfer (12)
- # re-frame (68)
- # reagent (1)
- # reitit (14)
- # shadow-cljs (65)
- # spacemacs (6)
- # sql (4)
- # tools-deps (2)
- # yada (1)
Can I access props from this
in a mutation? Often it would be helpful to access the same :db/id
without passing it by extra parameters
there is :ref
key on the environment map, this key tells you the ident of the component that triggered the mutation, using (get-in @state ref)
you get all the data from that ident
That is helpful, thanks!
I recently started storing ids of entities in the route, e.g. /#73
, to enable bookmarks. But forgot about the tempid remapping feature, so when creating a new entity this now gets put in the url /#fulcro/tempid[%22af8616a5-caf1-4e90-b531-52551795fdb1%22]
, which understandably doesn't get updated when the server returns with the remappings of tempids to real ids. Is there a callback or something to a mutation that I can hook into and also update the tempid that gets stored in the route?