This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-06
Channels
- # beginners (147)
- # boot (12)
- # chestnut (12)
- # cider (22)
- # clara (10)
- # cljs-dev (6)
- # cljs-experience (3)
- # cljsrn (12)
- # clojure (58)
- # clojure-austin (3)
- # clojure-dusseldorf (25)
- # clojure-finland (20)
- # clojure-gamedev (1)
- # clojure-greece (3)
- # clojure-italy (32)
- # clojure-new-zealand (5)
- # clojure-russia (12)
- # clojure-serbia (1)
- # clojure-spec (4)
- # clojure-uk (51)
- # clojurescript (75)
- # cursive (8)
- # datomic (81)
- # fulcro (29)
- # graphql (16)
- # heroku (6)
- # incanter (1)
- # keechma (1)
- # lumo (44)
- # off-topic (21)
- # onyx (22)
- # parinfer (5)
- # portkey (40)
- # re-frame (43)
- # reagent (5)
- # spacemacs (37)
- # specter (8)
- # unrepl (3)
there is good content about writing macros in Joy of Clojure, there’s also a book on clojure macros out there that I haven’t read
Awake now, and capable again of rational thought. ...
Macro is needed because I want to define the component name, not just its action. (That is: the macro is creating the definition of, e.g., sodium.core/list.na
in my example above).
If you are curious, the macro is https://github.com/deg/sodium/blob/master/src/sodium/macros.clj#L31-L43
I would love to see a nice way to do this without macros, but I don't see one.
Meanwhile, my immediate problem was solved by forcing eval of the function symbol, so the open questions are just ones of elegance and education.
why is the component name important? it would accept an anonymous function instead
Not sure if reagent is to blame but compiling my code in any :simple and :advanced causes
TypeError: Cannot read property 'createFactory' of undefined
From figwheel I may be getting a heads up warning with this
react.inc.js:2277 Warning: Accessing factories like React.DOM.noscript has been deprecated and will be removed in v16.0+. Use the react-dom-factories package instead. Version 1.0 provides a drop-in replacement. For more info, see
anyone had similar problems?