A namespace without dependencies would be a good start for my use case but what 
I also want to be able to "require" things in that namespace from my reusable 
components without having dependence on the folder structure of the host 
project which AFAIK dictates the namespace, e.g, main/appstate become 
main.appstate but what if the user had app/appstate instead pf main/appstate as 
their folder structure. How do i get at appstate from my reusable component 
without having to pass in cursors to the component and without having to 
hardcode the whole namespace as in main.appstate (since 'appstate" maybe 
defined in somethingElse other than main?

I am either missing something very basic or i should settle on passing in 
cursors to the reduable component, which is how i do it now. Just trying to see 
if cljs has the concept  of folder-structure-invariant namespaces so in my case 
i wish to have a file that can sit anywhere in the project and be namespaced as 
"appstate" rather than "parent-path.appstate"  This way if all my projects 
define "appstate" somewhere then my reusable components can be instantiated in 
each project without having to pass them appstate or cursors to parts of it. 
The 'window' analogy wouldnt work i realize but was just saying there is 
convenience in having that global folder/structure/invariant namespace in JS. 

Sent from my iPhone

> On Jun 26, 2015, at 9:44 AM, Leon Grapenthin <grapenthinl...@gmail.com> wrote:
> 
> If you are planning to do this with om, om wouldn't know that it has to 
> re-render your component in case the atom changes a part it uses. 
> 
> Are ref cursors probably what your are looking for?
> 
> In general, you can always have a namespace that has no dependencies within 
> your project and put a global atom in there. 
> 
> -- 
> 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