(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}.
Yep that looks correct
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).
Helix should work with any 16.x
Does npm-deps override what’s in your package.json already?
yes, it appears to run npm install
for each dep
specifically, it runs npm install --save --save-exact react@16.13.1 react-refresh@0.8.1
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.
So, I think this is an issue for shadow-cljs. Sorry for the noise!
No worries, that sounds confusing