Clojurians
#cljs-dev
<
2017-09-27
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

thheller07:09:01

@roman01la probably safer to make an accessor fn in the CLJS namespace (defn something [] (p/something (maybe-js-conversion-of-stuff)) and call the accessor fn in the macro

thheller11:09:34

someone with React+:advanced experience around? I have an issue where certain events (eg. onClick) do not trigger in optimized code

thheller11:09:55

even when using full externs

bhauman21:09:45

Darn it appears that specified :preloads can't be supplied only as "path based build inputs"(i.e. "target/temp_script/core.cljs") and must exist on the classpath, where as this is not a requirement for top level "path based build inputs". A warning is created i.e: WARNING: preload namespace figwheel.connect does not exist and the preload fails to compile correctly.

bhauman21:09:43

:preloads [figwheel.connect] doesn't work if you supply a "target/temp/figwheel/connect.cljs" to cljs.build

bhauman21:09:23

because :preloads needs figwheel/connect.cljs to be on the classpath

bhauman22:09:39

actually the compile process works, because the build input gets processed, and the warning is spurious in this case