This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-12-06
Channels
- # admin-announcements (7)
- # beginners (37)
- # boot (36)
- # cider (8)
- # cljs-dev (16)
- # clojure (155)
- # clojure-hamburg (1)
- # clojure-russia (2)
- # clojurecup (21)
- # clojurescript (69)
- # clojurex (12)
- # core-async (2)
- # datavis (3)
- # datomic (5)
- # devcards (4)
- # events (2)
- # hoplon (15)
- # lein-figwheel (45)
- # off-topic (22)
- # om (77)
- # re-frame (8)
- # reagent (7)
- # slack-help (1)
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/
Hello.
@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.
sooheon: glad to be of service
(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)))))))
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?
used a form-1 component instead of form-2 lol