Fork me on GitHub
#re-frame
<
2015-10-29
>
nowprovision05:10:30

@darwin, thanks, I will digest that github issue

mbertheau09:10:18

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?

nowprovision09:10:21

mberthea we were just discussing this above

nowprovision09:10:15

you could do register-sub :simple-path-watcher (fn [db [_ &amp; path] (reaction (get-in @db path)) then you do subscribe [:simple-path-watcher :a :stuck_out_tongue: :c]

nowprovision09:10:27

however check the caveats that @darwin linked to

mbertheau09:10:21

@nowprovision: Thanks for the pointer! I guess I can go with the simple-path-watcher approach for now.

nowprovision10:10:10

@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

nowprovision10:10:19

like --> likely

mbertheau10:10:59

@nowprovision: Nice! I'll take a look for inspiration simple_smile Btw: you can also edit previous messages you sent, just cursor-up. Unless you're on IRC.

nowprovision10:10:28

ah nice, never knew, cheers

mbertheau10:10:05

Does anyone have a screenshot of how the clairvoyant and re-frame-tracer logs look like in the dev console?