This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-05
Channels
- # beginners (29)
- # boot (29)
- # cider (54)
- # cljs-dev (99)
- # cljsjs (31)
- # cljsrn (39)
- # clojars (32)
- # clojure (171)
- # clojure-austin (2)
- # clojure-berlin (5)
- # clojure-brasil (3)
- # clojure-greece (2)
- # clojure-italy (1)
- # clojure-korea (11)
- # clojure-spec (202)
- # clojure-uk (166)
- # clojurescript (130)
- # cursive (54)
- # datomic (99)
- # dirac (18)
- # figwheel (6)
- # hoplon (23)
- # lambdaisland (3)
- # leiningen (8)
- # luminus (14)
- # off-topic (11)
- # om (3)
- # om-next (24)
- # onyx (59)
- # planck (25)
- # protorepl (10)
- # re-frame (49)
- # reagent (14)
- # ring-swagger (2)
- # rum (46)
- # schema (1)
- # slack-help (6)
- # specter (7)
- # testing (7)
- # untangled (115)
- # yada (1)
I don't know if this is idiomatic ClojureScript but what I ended up doing was just adding [project.other_namespace] to :require along side [reagent.core] and the other imports
That makes it work, but again, I don't know if that's idiomatic or just a dirty work around..?
If you have defined a var in namespace x and you want to use it in namespace y that's exactly what you have to do
Namespaces are kind of confusing for new clojurians, especially if you don't have a Java background or know a language that has something similar
@yogthos I just read about the difference between Component and Mount. When you said "still on mount" I took it to mean that mount was the predecessor to component and you just haven't moved off of it yet. But that didn't seem right because I remember seeing a talk on component a long time ago. So it finally hit me that you made an architectural decision and it is still working well
@gdeer81 yup that's pretty much it, I've been very happy with mount so far. I also liking stuff like this https://github.com/tolitius/stater/tree/master/hubble where mount makes it really easy to manage component state at runtime
as well as recent addition of mount-up https://github.com/tolitius/mount-up