Clojurians
#cljs-dev
<
2016-03-10
>

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

richiardiandrea22:03:51

I was fiddling with replumb when I notice something: if I require a namespace, say foo.bar.baz and before I had already required bar.core both in cljs.user

richiardiandrea22:03:26

(require 'foo.bar.baz) triggers load-fn on bar.core again here

richiardiandrea22:03:48

Loading dependencies for cljs.user
Loading foo.bar.baz namespace
<dump of foo.bar.baz>
Loading dependencies for cljs.user
Processing :use-macros for cljs.user
Processing :require-macros for cljs.user
Loading bar.core macros namespace ;; <- again?
...
...

richiardiandrea22:03:59

is this the expected behavior or I am doing something wrong? it looks like it does it when (get-in state [:cljs.analyzer/namespaces 'cljs.user :require-macros]) returns bar.core

richiardiandrea22:03:10

imho if I have already loaded bar.core I should not reload it again, but I may be missing some good reason for doing this way