This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-24
Channels
- # announcements (26)
- # babashka (9)
- # beginners (63)
- # calva (2)
- # chlorine-clover (22)
- # cider (2)
- # cljsrn (8)
- # clojure (36)
- # clojure-europe (36)
- # clojure-italy (5)
- # clojure-nl (76)
- # clojure-spec (9)
- # clojure-uk (8)
- # clojurescript (39)
- # conjure (24)
- # cursive (19)
- # data-science (1)
- # datascript (10)
- # datomic (1)
- # emacs (2)
- # events (5)
- # figwheel-main (9)
- # fulcro (21)
- # graalvm (1)
- # helix (5)
- # jobs (1)
- # jobs-discuss (1)
- # kaocha (1)
- # leiningen (4)
- # meander (2)
- # off-topic (22)
- # re-frame (16)
- # reitit (3)
- # rewrite-clj (75)
- # rum (1)
- # sci (51)
- # shadow-cljs (110)
- # tools-deps (16)
- # vrac (9)
- # xtdb (23)
@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.
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.