That is how re-frame's subscribe works. All components require the re-frame
namespace and can call subscribe using a keyword to choose which
subscription to use, but you don't have to know where it is defined as its
loaded into an atom which the subscribe function accesses.

On Sat, 27 Jun 2015 at 22:48 Leon Grapenthin <grapenthinl...@gmail.com>
wrote:

> Essentially what you are asking for is circular namespace dependencies.
> These are not supported in Clojure by design. Rich Hickey discussed that on
> Hacker News in the old days - you might want to google that to find out
> more about reasons behind it.
>
> Note that if you use a Javascript variable to store something globally, it
> solves your problem as well having a namespace that only contains one atom
> and does not depend on other namespaces. You can access that atom from
> everywhere in your app by requiring said namespace and read/write it as you
> like.
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to