This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-10-28
Channels
- # aws (3)
- # beginners (14)
- # boot (222)
- # cider (9)
- # cljs-dev (14)
- # clojure (107)
- # clojure-chicago (1)
- # clojure-dev (31)
- # clojure-nl (1)
- # clojure-poland (3)
- # clojure-russia (44)
- # clojure-sg (13)
- # clojure-za (3)
- # clojurescript (81)
- # core-async (5)
- # core-logic (4)
- # cursive (3)
- # data-science (3)
- # datomic (13)
- # events (7)
- # ldnclj (6)
- # leiningen (1)
- # off-topic (4)
- # om (298)
- # re-frame (13)
- # ring-swagger (7)
- # yada (12)
it seems like 90% of my subscribes could be replaced by (fn [db [_ filters] (reaction (get-in @db (rest filters))) wondering if Im creating a smell..
@nowprovision is there more 'work' you could be doing in your subscriptions that you're doing in your renders? Filtering etc?
I guess with mickey mouse experiment at the moment Im not hitting any special filtering or projection use cases.. i think i'll work around initially by creating a simple-sub that simply & args into get-in on db.. until I need more advanced subs
@nowprovision: I have very similar experience
@nowprovision: i had a similar experience at the beginning of my current project... it became less bothersome as the project got bigger, my subs.cljs got split across several namespaces
@nowprovision: that is natural I think, but it might lead to a performance issue if you have hundreds or thousands of such subscriptions: https://github.com/reagent-project/reagent/issues/165
has anyone tried re-frame with react-native ?
i'm using re-frame to build a cordova app atm, and am wondering if i could reasonably keep all of the core of the app and re-skin it with react-native ui
That should most likely work. I’ve been playing with reagent, re-frame, and react native a lot lately. I’ve got a demo project to get figwheel, reagent, and react native running here: https://github.com/decker405/figwheel-react-native
@decker405: thanks - that project looks like it might be very useful to me
@mccraigmccraig: No problem. Also http://cljsrn.org/ has a bunch more information on react native and clojurescript, as well as other options for setting up.