clj-commons / secretary

A client-side router for ClojureScript.
773 stars 64 forks source link

Call a javascript function after loading a new page? #78

Closed Quantisan closed 8 years ago

Quantisan commented 8 years ago

I'm using Foundation 5 for my CSS template and their javascript component asks for calling their JS function at the end of each page. Foundation is not seeing the new DOMs on routing so they aren't working. Is it possible to run a function after each page dispatch in secretary?

noprompt commented 8 years ago

@Quantisan Apologies for the delay on responding to this question. Can you provide a little bit more detail so I can try to make a suggestion?

Quantisan commented 8 years ago

I ended up using :component-did-mount lifecycle component in reagent.

Quantisan commented 8 years ago

thank you