I have been thinking about that too and it's not anything i've read about
directly.  Perhaps a weakness in React.

It seems like something you could use a channel or callback for passed as a
property.

Let's do something simple and practical now but keep our eyes open for
examples of other approaches.
On 4 Apr 2015 21:21, "Ruslan Prokopchuk" <[email protected]> wrote:

> I want to make Om Popup component based on Closure Popup [1], which takes
> two results of `om/build` (let name it `anchor` and `popup`) and wraps them
> to add popup functionality to `popup`, anchoring its position to `anchor`.
> But in my component I need to get `anchor` and `popup` DOM elements to read
> actual width of `anchor` and to pass `popup` node in goog.ui.Popup. Now I
> use `(om/get-node (.. anchor -props -children -owner)`, but it seems to be
> too deep in guts and unreliable (especially when component is additionally
> wrapped using :instrument).
>
> So, my question is: does any reliable way to get component owner from
> component exist? Or, may be, does any better architecture for implementing
> popup in Om exist?
>
> [1]
> http://docs.closure-library.googlecode.com/git/class_goog_ui_Popup.html
>
> --
> 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.

Reply via email to