figwheel

general discussion about figwheel, specific discussions in #figwheel-main and #lein-figwheel
pez 2019-08-06T11:27:34.040Z

I have troubles getting hot-reloading, or rather re-rendering, to work in a project I am converting from lein-figwheel. Figwheel rebuilds my pages, flashes the loading icon and prints to the console that it loads my updated namespaces. But the re-render does not happen. I have ^:figwheel-hooks on the namespace and a function designated with ^:after-load. But this function never seems to be called, I've added a printing to it, that never reaches the console. I'm comparing with a fresh project from the template, and can't really see where I do something different... Anyone knows where to go looking for what I've missed?

pez 2019-08-06T11:44:47.041400Z

I found a difference. I was using figwheel-main 0.2.1 and the template is using 0.1.9. If I downgrade, things start to work.

pez 2019-08-06T11:53:23.041900Z

It also works if i use 0.2.0

pez 2019-08-06T12:01:58.042700Z

AAAAAnnnd, if i use 0.2.3 it also works. Never mind me. 😃

pez 2019-08-06T13:59:39.047100Z

OK. So back with another mystery. I have a ring-handler serving dynamic pages (rum server-side). It can serve the / root as well, but whatever I do, it I always either get served my public/index.html (if that one is present), or the figwheel default index html code (if I remove my index.html). This happens even if use the example Host Page handler from https://figwheel.org/docs/your_own_page. What could be triggering this behaviour?

pez 2019-08-06T14:01:42.047800Z

(The Host Page example works wonderfully in the template project)