This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-26
Channels
- # aatree (1)
- # admin-announcements (1)
- # beginners (84)
- # boot (239)
- # braid-chat (5)
- # braveandtrue (20)
- # cider (42)
- # cljsjs (4)
- # cljsrn (31)
- # clojars (18)
- # clojure (101)
- # clojure-austin (1)
- # clojure-gamedev (4)
- # clojure-madison (2)
- # clojure-poland (30)
- # clojure-russia (37)
- # clojurescript (95)
- # core-async (7)
- # cryogen (1)
- # css (3)
- # cursive (14)
- # datomic (8)
- # devcards (7)
- # dirac (2)
- # editors (2)
- # emacs (2)
- # funcool (1)
- # hoplon (15)
- # immutant (30)
- # ldnclj (37)
- # lein-figwheel (6)
- # leiningen (8)
- # luminus (5)
- # mount (1)
- # off-topic (59)
- # om (325)
- # om-next (7)
- # onyx (95)
- # parinfer (162)
- # proton (1)
- # re-frame (4)
- # reagent (23)
- # slack-help (4)
- # yada (43)
@dfcarpenter: either as a parameter to the reagent component function, or as a re-frame subscription referenced from within the component function, or some combination, where sub params are passed in as component function params
@mccraigmccraig: if I add a parameter to the top-level reagent component fn (say :home-panel [id] ) how would I alter the existing :set-active-panel handler and possibly also the panels multimethod to do this?
@dfcarpenter: dunno... not sure what you are trying to achieve. if you just want to add a param to the home-panel
and not the other panels selected by the multimethod then you are perhaps better off using a sub from the home-panel
, and then setting the data for that sub in the app-db
with some other handler
@mccraigmccraig: Thanks. That’s what I ended up doing for now. My original intent was to reduce some boilerplate by having one component handle the rendering of 4 different 2nd level maps belonging to an object. It would know how to reference the map it needed by the parameter passed in the route (such as “/item/:id”) and using the routes parameter as a parameter for the components re-frame/subscription.