This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-06-30
Channels
- # admin-announcements (19)
- # announcements (4)
- # beginners (22)
- # boot (76)
- # cider (92)
- # clojure (235)
- # clojure-berlin (3)
- # clojure-germany (1)
- # clojure-italy (8)
- # clojure-japan (18)
- # clojure-russia (26)
- # clojure-sg (1)
- # clojure-uk (25)
- # clojurescript (55)
- # code-reviews (7)
- # core-async (53)
- # datomic (13)
- # euroclojure (63)
- # jobs (39)
- # ldnclj (45)
- # off-topic (9)
- # om (7)
- # onyx (6)
- # reading-clojure (1)
- # reagent (5)
- # yada (22)
Hi all, I'm wondering how I can get at a secretary destructured route map within an om component, I've contrived a rough sketch of some code to illustrate (http://pastebin.com/JHgMZQx8). If I wanted to load the data for the id presented in the url, would I need to use shared state to communicate which id is being viewed to the component view or is there a better way?
@jamiei: not sure if an idiomatic way has been established. i use bidi myself, and keep an up-to-date :route
map in my app-state
jamiei: no need to switch horses i use something similar to https://github.com/sander/precook/blob/master/src/precook/om_helpers.cljs now to keep app state up-to-date