This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-18
Channels
- # beginners (25)
- # boot (30)
- # cljs-dev (22)
- # cljsjs (2)
- # cljsrn (1)
- # clojars (4)
- # clojure (223)
- # clojure-boston (1)
- # clojure-dusseldorf (1)
- # clojure-gamedev (8)
- # clojure-italy (5)
- # clojure-russia (122)
- # clojure-sg (3)
- # clojure-spec (26)
- # clojure-uk (42)
- # clojurescript (69)
- # clojuresque (10)
- # core-async (25)
- # cursive (10)
- # datascript (5)
- # datomic (12)
- # emacs (18)
- # garden (1)
- # interop (1)
- # jobs (1)
- # jobs-discuss (10)
- # leiningen (2)
- # liberator (1)
- # lumo (21)
- # nyc (2)
- # off-topic (210)
- # om (11)
- # om-next (3)
- # onyx (1)
- # pedestal (6)
- # re-frame (10)
- # rum (9)
- # specter (38)
- # uncomplicate (1)
- # vim (23)
- # yada (22)
could I modify dom generated by render-fn in :wrap-render mixin? like show a popup below the dom
@tonsky thanks. Is there a way to dynamically assign mixin to a component? for example, i expect to put some mixin in dev mode. Or i could just switch off the mixin. One way i found in github is to avoid defc macros, use build-ctor instead.
@sniperliuhao I’m sure you can also define a mixin conditionally which does nothing (i.e. {}
)
You could easily do that with closure-defines https://www.martinklepsch.org/posts/parameterizing-clojurescript-builds.html
(def my-dev-mixin
(if (identical? true defines/DEV)
{:did-mount ,,,}
{}))
Maybe you could also use true?
instead of identical?