This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-27
Channels
- # beginners (56)
- # calva (61)
- # cider (16)
- # clara (7)
- # cljdoc (2)
- # cljs-dev (2)
- # cljsrn (1)
- # clojure (144)
- # clojure-spec (23)
- # clojure-uk (5)
- # clojurescript (9)
- # clojureverse-ops (5)
- # community-development (4)
- # cursive (18)
- # datomic (15)
- # docs (6)
- # jackdaw (2)
- # nrepl (10)
- # nyc (2)
- # off-topic (18)
- # rewrite-clj (20)
- # shadow-cljs (31)
Re-frame Q: any thoughts on functions vs subscriptions? I know subs are more idiomatic, but you can just basically pass around db and get the stuff you need atomically as 'get-in' is so inexpensive in clojure.
@i.i.volkov if your problem is simple enough, sure. But as your application gets a little bit larger and more complicated, subscriptions are a useful for a few reasons (1) an efficiency layer ... if rendering depends on some aspect of app-db
which hasn't changed then don't re-render (2) moves the computation of "materialised views` away from rendering code, etc.
Thanks! And in re-frame, can I inherit reactivity? I mean something like view-fn <- plain-boring-fn-inside-view-fn <- my-sub-inside-plain-boring-fn won’t trigger a rerendering of my view-fn that returns hiccup?
Hey, coming from a React background I was wondering if there is a clojurescript equivalent to styled-components?
While we're on the topic, what are the preferred / most well-supported options for styling in the clojurescript community?
garden (https://github.com/noprompt/garden) gets traction. What's lacking is a few frameworks (boot, material, semantic) transpiled to garden. Might be a nice antl4r project 🙂