Fork me on GitHub
#figwheel-main
<
2020-08-24
>
grumplet11:08:37

@pez @folcon Discovered a real nasty with the figwheel-main webpack setup above this morning. If you don’t run figwheel.main in order to use Calva inline-eval, then you lose hot reloading.

grumplet11:08:33

It apparently reloads - the little heads up cljs badge appears in the browser at the right time - but the code does not update.

grumplet11:08:35

So I’m guessing it’s something to do with the main.js having updated, but the main_bundle.js which refs it not having updated. Difficult to explain why this should be :(

grumplet11:08:20

@pez @folcon. Ah, ignore that. 🙂 The hot reload as documented in the minimal example I system I documented above does work. It looks like I’ve only broken hot reload in my current project somehow.

folcon11:08:22

That's frustrating, but good to hear it's not a bug.

grumplet13:08:23

Not sure what the issue is in my project. Running my core/mount-root function from the REPL reloads the changed code as expected, so I would expect tagging mount-root with ^:after-load metadata to work. But the mount-root function doesn’t get called after a source edit.

grumplet13:08:07

OK - found the issue - I hadn’t added ^:figwheel-hooks to my core namespace, so ^:after-load wasn’t triggering. Doh!

folcon14:08:01

Yea, that's an easy mistake to make..

pez17:08:05

Awesome. Thanks for heads up, even if it was false this time. ❤️