Fork me on GitHub
#re-frame
<
2015-12-06
>
mikethompson01:12:17

If you are new, I'd recommend starting with re-frame-template. https://github.com/Day8/re-frame-template Also, make sure you have looked at the reframe examples (in the repo) https://github.com/Day8/re-frame/tree/master/examples If you want to understand reagent, BE SURE to read the reagent specific docs in re-frame Wiki (see down the bottom): - https://github.com/Day8/re-frame/wiki#reagent-tutorials My overall recommendations for those starting out in clojurescript is: - use reagent /reframe - use figwheel - use Cursive/IntelliJ - use cljs-devtools (for debugging) - perhaps use clairvoyant (for debugging) - use https://github.com/ptaoussanis/timbre for logging - draw client/server inspiration from http://www.luminusweb.net/

sooheon12:12:25

@pupeno: just want to say thanks for your nice blog at carouselapps, I’m learning cljs and re-frame and it’s a great resource.

sooheon12:12:01

specifically the routing stuff and your really detailed ninjatools walkthrough

pupeno12:12:58

sooheon: glad to be of service simple_smile

martinklepsch19:12:51

(rf/register-sub
 :selected-tweets
 (fn [db [k]]
   (let [tweets   (rf/subscribe [:tweets])
         favstats (rf/subscribe [:favstats])]
     (reaction (set (map :id (select-tweets (vals @tweets) @favstats)))))))

martinklepsch19:12:37

having something like this I’d expect select-tweets only to be ran when either tweets or favstats subs change but it’s rerun even when they don’t — am I misunderstanding or is this unexpected?

martinklepsch19:12:17

used a form-1 component instead of form-2 lol