This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-07
Channels
- # announcements (2)
- # beginners (25)
- # calva (16)
- # cljdoc (37)
- # cljsrn (24)
- # clojure (204)
- # clojure-nl (4)
- # clojure-spec (34)
- # clojure-uk (3)
- # clojurescript (13)
- # cursive (8)
- # data-science (3)
- # dirac (21)
- # figwheel-main (1)
- # luminus (3)
- # off-topic (45)
- # pedestal (3)
- # planck (2)
- # re-frame (5)
- # shadow-cljs (270)
- # spacemacs (5)
Hi all. I’m building a largish web UI in re-frame and I’d like to replicate something like in Vue where each component contains its own styles. I’m thinking of having each component namespace just register its styles in a central ratom as it’s loaded, then using that ratom to render an inline <style>
element. One thing I’m a little worried about is performance, as presumably the <style>
element would re-render for each new namespace that is loaded. Is this a reasonable approach? Can someone suggest a better way?
https://github.com/Jarzka/stylefy takes a similar approach but handles efficient change of the style elements i think
Hey @U5RCSJ6BB that’s pretty cool. Thanks.
Hi guys, I a little confused about "domino" 3, I can't find the code in this sample: https://github.com/Day8/re-frame/blob/master/examples/simple/src/simple/core.cljs Does re-frame take care of it or it's the job of the developer to write its code?
Ah never mind, found the answer here: https://github.com/Day8/re-frame/blob/master/docs/CodeWalkthrough.md#effect-handlers-domino-3