This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-10-29
Channels
- # aws (1)
- # beginners (65)
- # boot (400)
- # cider (19)
- # clara (2)
- # cljs-dev (29)
- # clojure (127)
- # clojure-chicago (2)
- # clojure-conj (1)
- # clojure-dev (12)
- # clojure-russia (156)
- # clojure-sg (6)
- # clojure-za (1)
- # clojurescript (193)
- # core-async (23)
- # datomic (91)
- # editors (4)
- # editors-rus (1)
- # events (1)
- # hoplon (3)
- # jobs (1)
- # ldnclj (6)
- # leiningen (3)
- # nginx (3)
- # off-topic (5)
- # om (93)
- # onyx (10)
- # re-frame (11)
- # spacemacs (1)
- # testing (2)
- # yada (5)
@darwin, thanks, I will digest that github issue
A lot of the subs in my project look very similar like this: (-> @db :some :keys reaction)
, so there's a lot of boilerplate. Similar for many of the handlers. Is there something in re-frame to reduce that boilerplate?
mberthea we were just discussing this above
you could do register-sub :simple-path-watcher (fn [db [_ & path] (reaction (get-in @db path)) then you do subscribe [:simple-path-watcher :a :stuck_out_tongue: :c]
however check the caveats that @darwin linked to
@nowprovision: Thanks for the pointer! I guess I can go with the simple-path-watcher approach for now.
@mbertheau if its of any interest i github my embarrassing efforts with cljs/reframe as I go https://github.com/nowprovision/webhookproxyweb, will like move all subs out tomorrow to a single ns
like --> likely
@nowprovision: Nice! I'll take a look for inspiration Btw: you can also edit previous messages you sent, just cursor-up. Unless you're on IRC.
ah nice, never knew, cheers