Fork me on GitHub
#cljsrn
<
2021-08-17
>
Achim Munene11:08:46

does anyone have cljs+rn running with Storybook i keep getting a endlessly loading story panel

dnolen11:08:31

@achim_munene do you mean actually using Storybook from ClojureScript? It might be possible but I haven't tried it myself

dnolen11:08:47

We just write the components in JS, write Storybook in JS - and consume the components from ClojureScript

Achim Munene13:08:05

Yes actually using Storybook from Clojurescript, i got it to work using shadow cljs and reagent for normal web components issue came up when i tried to do the same for a RN app using shadow cljs and expo

dnolen14:08:57

Yeah can't offer any info since I never tried direct usage

kennytilton18:08:56

So we are looking at using the magic of .cljc to share code between backend and front, but we have to handle things for both web and some RN wrapper, and they differ in re, say, talking to MQTT via Paho. I see these #? options: #?(:clj (Clojure expression) :cljs (ClojureScript expression) :cljr (Clojure CLR expression) :default (fallthrough expression)) Can we extend that ourselves? Thx! 🙏

kennytilton18:08:29

Ugh. Meant to ask on the #clojurescript .

thheller21:08:37

note that this is not an official feature and not supported by regular CLJS or CLJ

kennytilton06:08:18

Ah, great, @U05224H0W. Very promising. Thx! 🙏