On Monday, July 21, 2014 6:18:01 PM UTC+2, Daniel Kersten wrote: > Mark, when running devcards in figwheel, usually changing the state atom and > refreshing does reload the state in the browser automatically without refresh. > > > Andreas, I've noticed the same thing. #1 is the expected behaviour - figwheel > has no way of knowing that it should recompile the cljs file when the html > file is changed. > > > I am kinda thinking about writing a file watcher that touches the cljs file > when the html changes, but I don't know yet what the best way of doing this > would be (at least, I don't know how to best tell which html file needs to > refresh which cljs file.. the best I can think of is that the kioo macros are > modified to send the information to my file watcher, but this would get very > messy..). > > > > > > As for #2, I've noticed the same issue and don't really know what to do about > it. Does it only happen for you with kioo or all Om components? (I don't > remember myself and can't check right now) > > > > > > > > On 21 July 2014 15:40, Andreas Liljeqvist <[email protected]> wrote: > > > 1. I wanted to know if there is any way of specifying that changes in html > always should trigger a recompile in a cljs. > > > > > > 2. In this figwheel example: > http://rigsomelight.com/2014/05/01/interactive-programming-flappy-bird-clojurescript.html > > > > They are using "defonce" to ensure that the atom doesn't change when figwheel > reloads upon changes. > > But it isn't using either Om or Kioo, so I figured my problems were related > to them. > > > > > > -- > > 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.
1. I figure that the changes would be somewhat involved, perhaps a bandaid could be to touch all the cljs whenever any html changes? 2. It seems to happen with om-root-card and react-runner-card. In this example at the devcards github: https://github.com/bhauman/devcards/blob/master/example_src/devdemos/core.cljs#L124-L138 If I change the defonce to def, the exact same value still persists. When using just a map for the initial-state the same happens. -- 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.
