This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-15
Channels
- # aleph (9)
- # announcements (6)
- # beginners (42)
- # calva (4)
- # cider (9)
- # clara (2)
- # clj-kondo (1)
- # cljdoc (108)
- # cljs-dev (10)
- # clojure (25)
- # clojure-brasil (1)
- # clojure-chicago (1)
- # clojure-europe (4)
- # clojure-italy (42)
- # clojure-nl (14)
- # clojure-uk (66)
- # clojurebridge (3)
- # clojurescript (23)
- # clojutre (2)
- # community-development (1)
- # cursive (2)
- # datomic (4)
- # figwheel-main (21)
- # fulcro (23)
- # jobs-discuss (1)
- # kaocha (1)
- # off-topic (10)
- # pedestal (4)
- # reitit (2)
- # shadow-cljs (41)
- # spacemacs (7)
- # sql (20)
- # xtdb (3)
@oskarkv I don't see :external-config
in the CLJS compiler options https://clojurescript.org/reference/compiler-options
Look at the :preloads
section here -- https://figwheel.org/docs/compile_config.html
@dimovich the preloads section does not say how to configure devtools, just that it preloads.
Have you tried using the programmatic configuration? https://github.com/binaryage/cljs-devtools/blob/master/docs/configuration.md#programmatic-configuration
I tried with the programmatic config, but figwheel-main loads devtools by default, but only with the formatters, and that happens after my own preload. 😛
Here it says to use :external-config https://github.com/binaryage/cljs-devtools/blob/master/docs/configuration.md#configuration-via-compiler-options
Hey all, I'm seeing soemthing weird. I'm using figwheel main with re-frame. When I make a change to one of the source files, I see the code get reloaded for that file (via the browser console), however functions do not appear to be re-loaded.. I.e.
If I have a component that renders a header, and I make a change to the header, that component does not change. I am confident that the file is re-loaded as I have put a (js/console.log "hi")
inside of the file (which gets printed as the file reloads) but if I put one inside of the function, it does not get printed as the file re-loads
It's hard to tell without some code examples. Are you talking about a re-frame event / subscription ? Or about a reagent component? Does the component make reference to some reagent/atom ?
Does the function that mounts your reagent components has the ^:after-load
figwheel hook?
more information -- https://figwheel.org/docs/hot_reloading.html
You might need this too https://github.com/Day8/re-frame/blob/master/docs/FAQs/Why-Clear-Sub-Cache.md