Fork me on GitHub
#figwheel-main
<
2019-07-28
>
roti11:07:05

I'm having problems getting figwheel to autoload my code. the re-rendering happens (I set up a figwheel hook, which works), but the new component version is not active, the old one is still references and used. any suggestions how I might get to the bottom of this?

roti11:07:21

roughly the setup is following: the root component is app, is uses another component foo. when inside the figwheel dev repl, I change component foo, figwheel loads it automatically, and it is available (if I have a look at it inside the repl). however, app still references the old foo. strangely, figwheel says it loads the namespace where app is, but somehow app has a reference to the old foo

roti11:07:38

(i'm using reagent)

roti12:07:33

when figwheel says in the browser log: [Figwheel] loaded (foons barns), does this mean that the entire namespace foons and barns were compiled and hotloaded?

roti12:07:49

nevermind, I found the problem, there was a defonce in between the referencing from app to foo 😋