Actually, now that I think about it, that's not right. It shouldn't matter 
where or when you create the Atom. 

Instead, what I suspect you have is two or more instances of the component 
containing the Atom, thus two different Atoms.

You can tell if the Atoms are the same object by printing them, which shows 
a unique hash of each Atom's identity.

-S


On Monday, May 5, 2014 6:25:55 PM UTC-4, frye wrote:
>
> Ahh, so that was it then. Yeah, I definitely created that atom in the 
> start method. 
>  
>
> On Mon, May 5, 2014 at 3:27 PM, Stuart Sierra <the.stuart.sie...@gmail.com
> > wrote:
>
>> At what point did you **create** the Atom in :a? Any mutable references 
>> which need to be shared among all usages of a component must be created in 
>> the **constructor**, not the `start` or `stop` methods.
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to