Fork me on GitHub

@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.


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


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 :(


@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.


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


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.


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


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


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