Fork me on GitHub
#lein-figwheel
<
2016-03-16
>
doddenino09:03:13

I see, thanks!

apviitanen09:03:20

would alembic work? I think I’ve only tried it with Clojure backend projects and it does wonders there. https://github.com/pallet/alembic

pez20:03:56

Is there a way I can tell if a reagent component update (or re-mount) is caused by a figwheel reload?

danielcompton21:03:39

@pez put a logging statement in your reload?

pez22:03:36

@danielcompton: I was unclear. I mean if there's a way for my component to know.

danielcompton22:03:12

not AFAIK, although if you need to make that distinction it suggests something might not be quite right in the reloading code

danielcompton22:03:45

But I don’t know the context, so I might be wrong.

pez22:03:51

I'm not ruling that out. The context is that my app relies on HTML5 pushstate (via Accountant) and I seem to need to handle scrolling to the top of each new page myself. I've got it somewhat working, but it has the side effect of my pages scrolling to the top when I make changes to the page in development. I was thinking I could close that side effect if only I could tell if it was a code reload triggering the update of my page component.