Awesome, thank you, it was :component-did-mount I was looking for.
It's easy to forget that a component in reagent has access to lifecycle methods 
too, happens much to often to me.

Best Regards,
Sven

Am Freitag, 13. März 2015 13:23:48 UTC+1 schrieb Mike Thompson:
> On Friday, March 13, 2015 at 10:10:55 PM UTC+11, Sven Richter wrote:
> > Hi,
> > 
> > I am trying the re-frame pattern with resumable.js.
> > Resumable.js needs one to execute a function on an existing dom element 
> > like this:
> > r.assignBrowse(document.getElementById('browseButton'));
> > 
> > Now, the problem is, if the button is not there yet in the dom, calling 
> > assignBrowse will fail obv.
> > 
> > I guess the best approach is to have an event when the dom is rendered and 
> > afterwards call assignBrowse, but how would I do that in the re-frame 
> > pattern?
> > 
> 
> 
> I'd have a look at the reagent cookbook - it has a few chapters in on 
> reagent/js-library patterns. 
> 
> --
> Mike

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