practicalli-john 2019-07-15T08:17:55.067700Z

Sorry, I don't know if this would work. It sounds like a reasonable approach and easy enough to try I assume.


@oskarkv I don't see :external-config in the CLJS compiler options


Look at the :preloads section here --


it shows how to use devtools

oskarkv 2019-07-15T11:10:03.070200Z

@dimovich the preloads section does not say how to configure devtools, just that it preloads.

PB 2019-07-15T13:35:53.072300Z

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

PB 2019-07-15T13:36:45.072600Z

I'm rather baffled by this


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?


Have you tried using the programmatic configuration?


I see that figwheel-main is aware of the :external-config

PB 2019-07-15T19:10:19.074300Z

It would just be a regular component such as:

(defn title
  [:h1 "mooo"])

PB 2019-07-15T19:10:49.074500Z

I do not have an ^:after-load hook


this is how I usually use figwheel-main



more information --

PB 2019-07-15T19:56:28.076500Z

This helps a lot, thank you

oskarkv 2019-07-15T22:29:09.076800Z

You might need this too

oskarkv 2019-07-15T22:30:39.077100Z

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