*I could assign to window.someCLJSfunctionOrDataStructure from CLJS but I think it may get renamed during Closure's advanced compilation or does it?*
If you use *(aset js/window "someCLJSfunctionOrDataStructure" your-data-or-fn)* to set and *(aget js/window * *"someCLJSfunctionOrDataStructure")* to get, then it won't be renamed by advanced compilation. You could also use fence: https://github.com/myguidingstar/fence On Fri, 26 Jun 2015 at 23:51 Marc Fawzi <[email protected]> wrote: > I'm not using Om and this was a general question about whether or not CLJS > supports the concept of a folder-structure-invariant namespace. Sounds like > baggage from Java land, which may be am advantage in the general case. > > But now I'm intrigued by ref cursors in Om.:) > > Sent from my iPhone > > > On Jun 26, 2015, at 2:28 PM, Leon Grapenthin <[email protected]> > wrote: > > > > Again, I recommend you to look at ref cursors. The general portion black > om magic I use for this is: > > > > Put the app-state atom in :shared when mounting under a key you like. > > > > Then write a simple wrapper about the fns exposed for ref cursoring so > that you can access any portion of the app-state you like as a ref cursor > from the current components owner. > > > > The only caveat is that you need some cursor available at the korks you > are creating your ref cursor at. If nothing is there, you can't create a > ref cursor from it. > > > > > > https://github.com/omcljs/om/wiki/Advanced-Tutorial#reference-cursors > > > > I think ref cursors are of great utility if used sparsely, e. g. for > things like the currently signed in user. > > > > -- > > 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 [email protected]. > > To post to this group, send email to [email protected]. > > 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 [email protected]. > To post to this group, send email to [email protected]. > 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
