Something like:

(om/build my-component data {:state {:callback (fn [x] (om/set-state! owner
:foo x))}})

That way the parent retains control over how it's state is
updated/validated but the child can trigger it.

On Thu, 4 Dec 2014 10:57 Andrew <andrew...@gmail.com> wrote:

> Sorry, that previous message malformed. It read:
>
> Thanks Daniel. Can you clarify what you mean by the callback/closure
> approach?
>
> --
> 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