Fork me on GitHub
#luminus
<
2017-01-05
>
gdeer8100:01:37

Did you refer the other namespace in core?

gdeer8100:01:47

I'm not good at debugging without seeing the code

mbcev00:01:10

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

mbcev00:01:47

That makes it work, but again, I don't know if that's idiomatic or just a dirty work around..?

gdeer8102:01:21

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

gdeer8102:01:03

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

gdeer8103:01:35

@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

yogthos03:01:56

@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

yogthos03:01:14

as well as recent addition of mount-up https://github.com/tolitius/mount-up

gdeer8103:01:59

Very cool

sveri21:01:29

Hi, how do you update a session object when rendering a template with layout/render?

yogthos22:01:37

layout/render will return a Ring response, so you'd handle the session like you would normally

sveri22:01:12

@yogthos Great, thank you