(om/core.async newbie warning)

I see a common pattern (including in the om tutorials) of using channels to 
communicate. Specifically I see code similar to:

[code]
om/IWillMount
    (will-mount [_]
      (let [nav (om/get-shared owner :nav-chan)]
        (go (loop []
              (let [page (<! nav)]
                (om/transact! app :page (fn [x] page))
                (recur))))
[/code]

What happens when that component is unmounted? Do I need to stop listening to 
that channel and if so how do I do that?

I am not claiming there is a problem, I am simply asking if there is a 
potential problem and for clarity on the mechanics.

For context, I am mounting/unmounting quite a bit as they navigate through the 
app.

Thanks!

-- 
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.

Reply via email to