Fork me on GitHub
#figwheel-main
<
2019-07-15
>
dimovich11:07:43

@oskarkv I don't see :external-config in the CLJS compiler options https://clojurescript.org/reference/compiler-options

dimovich11:07:31

it shows how to use devtools

oskarkv11:07:03

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

dimovich18:07:36

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

oskarkv22:07:39

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

PB13:07:53

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

dimovich18:07:42

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 ?

dimovich18:07:42

Does the function that mounts your reagent components has the ^:after-load figwheel hook?

PB19:07:19

It would just be a regular component such as:

(defn title
  []
  [:h1 "mooo"])

PB19:07:49

I do not have an ^:after-load hook

dimovich19:07:32

this is how I usually use figwheel-main

PB19:07:28

This helps a lot, thank you

👍 4
PB13:07:45

I'm rather baffled by this