This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-25
Channels
- # aws (10)
- # babashka (4)
- # beginners (103)
- # calva (19)
- # chlorine-clover (2)
- # cider (10)
- # cljs-dev (23)
- # cljsrn (6)
- # clojure (145)
- # clojure-europe (17)
- # clojure-nl (1)
- # clojure-spec (11)
- # clojure-uk (4)
- # clojurescript (64)
- # conjure (11)
- # core-async (19)
- # cursive (38)
- # datomic (4)
- # duct (2)
- # fulcro (51)
- # helix (11)
- # joker (1)
- # kaocha (7)
- # leiningen (3)
- # malli (5)
- # meander (3)
- # off-topic (12)
- # pathom (17)
- # pedestal (2)
- # re-frame (27)
- # rum (11)
- # shadow-cljs (77)
- # xtdb (9)
- # yada (1)
(let [input-params {:type "email"} ]
($ tw/Input {:& input-params}))
It's a map already, but $ doesnt know because it's resolved at compile time, so I type it again with {&: input-params}.
I noticed that helix 0.11 comes with a deps.cljs
file. This actually causes weirdness for react-native projects, because we are pinned to the version of react that comes with react-native. For example, the latest react-native (0.62) comes with react 16.11.0. Is there a way to :exclude a dependency from npm-deps so shadow-cljs doesn't automatically install helix's npm-deps? Also, does helix actually require react 16.13? (It seems to work fine with react 16.11).
specifically, it runs npm install --save --save-exact [email protected] [email protected]
OK, i just did another experiment and I think the disconnect is that I have a custom :js-options {:js-package-dirs [...]}
path set in shadow-cljs.edn
, and shadow-cljs doesn't realize that react and react-refresh are already contained in there. Without setting :js-package-dirs
, it doesn't override what's already in the package.json.