This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-24
Channels
- # announcements (13)
- # asami (9)
- # aws (3)
- # babashka (13)
- # babashka-sci-dev (7)
- # beginners (32)
- # calva (59)
- # cider (9)
- # clj-kondo (5)
- # cljsrn (14)
- # clojure (98)
- # clojure-brasil (5)
- # clojure-dev (1)
- # clojure-europe (30)
- # clojure-france (12)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (7)
- # clojurescript (20)
- # conjure (2)
- # datahike (7)
- # datalog (38)
- # datomic (29)
- # events (1)
- # fulcro (72)
- # graalvm (1)
- # gratitude (3)
- # helix (7)
- # honeysql (3)
- # improve-getting-started (2)
- # introduce-yourself (1)
- # leiningen (13)
- # lsp (17)
- # malli (11)
- # meander (8)
- # nextjournal (3)
- # off-topic (5)
- # pathom (2)
- # portal (43)
- # rdf (2)
- # re-frame (8)
- # reagent (7)
- # reitit (1)
- # shadow-cljs (27)
- # spacemacs (31)
- # sql (2)
- # tools-deps (3)
- # vim (1)
- # xtdb (12)
Has anyone set up storybook hi with krell? I am having the hardest time getting this to work.
That's going to be my next task. Altho I prefer Cosmos (https://github.com/react-cosmos/react-cosmos)
The issue I have is getting my components to work with ClojureScript. I want to avoid Redux and write my business logic in CLJS. I don’t know whether to write JS components inside a CLJS app or CLJD react native components and have them connect to Storybook or Cosmos. Any ideas?
@UGNMGFJG3 I know http://vouch.io write plain JS components which are tested in Storybook, then use a CLJS app to direct them and run the business logic
If you page back far enough in here, David Nolen explained that writing dumb components in JS boils down to essentially markup and next-to-no logic.
I haven’t done this myself, but conceptually it made sense to me.
Thanks @U0E1JV8GK. The best I can tell is that they run them in separate processes rather than integrate them. I’ve been struggling with combining them. I am about to give up and just import JS objects into my CLJS REPL.
I think that makes sense. I would consider it the same as importing third-party components that were written in JS.
I tried a solution from https://stackoverflow.com/questions/60729710/how-to-disable-fast-refresh-in-react-native-on-javascript-not-using-developer without luck
Well, I couldn't find a switch for this so I ended up commenting the reloading code
This could also work :
(when-let [DevSettings (.-DevSettings ^js rn/native-modules)]
(when (.-setHotLoadingEnabled DevSettings)
;; It's necessary to toggle the value from on to off in RN 0.63 for
;; the change to have an effect
(.setHotLoadingEnabled ^js DevSettings true)
(.setHotLoadingEnabled ^js DevSettings false)))