dominicm 2020-06-10T10:34:05.226900Z

It would be nice to have a REPL function to trigger a re-bundle now that I no longer can just copy/paste it as it's using :final-output-to

bhauman 2020-06-10T14:48:48.227500Z

@dominicm have you tried the new :smart setting?

bhauman 2020-06-10T14:49:01.227800Z

under :bundle-freq

bhauman 2020-06-10T14:49:19.228200Z

yeah I can see that would be helpful

dominicm 2020-06-10T15:56:58.232500Z

@bhauman wouldn't work, I'm modifying the JavaScript itself. I have a legacy JavaScript part of my application which is installed as a symlink.

bhauman 2020-06-10T15:58:36.233200Z

@dominicm did you ever launch a watcher process in the background?

dominicm 2020-06-10T15:58:58.233700Z

That was how I initially did it, yeah

dominicm 2020-06-10T15:59:18.234200Z

Webpack creates watches on everything in node_modules

dominicm 2020-06-10T15:59:32.234600Z

I ran out of file watchers

bhauman 2020-06-10T16:05:57.234800Z

oh gee whiz

bhauman 2020-06-10T16:06:38.235400Z

Thats pretty bad


Does hot-reloading only apply to certain parts of my .cljs files? e.g., if I have

(defn app []
And change it to:
(defn app []
       [:p "Some other stuff"]])
Should that be changing (I see the little figwheel icon appear in the bottom left when I save) but I have to hit F5 to get the changes to show> Is this just how reagent is set up?

bhauman 2020-06-10T16:17:13.238400Z

@qmstuart OK you should stop calling main() from your html

bhauman 2020-06-10T16:17:30.238800Z

and just put (main) at the bottom of you cljs file for now

bhauman 2020-06-10T16:17:59.239400Z

that way when it loads it will re-render your app


cool! THat worked 😄




From what I can see this isn't really in the reagent docs


How to set this up properly

bhauman 2020-06-10T16:19:04.241Z

actually reading that whole page is a good idea


Thanks, I'll have a read.

bhauman 2020-06-10T16:20:09.241900Z

its actually pretty simple your file gets reloaded and re-executed on save

bhauman 2020-06-10T16:20:34.242400Z

so if its all functions nothing is going to get execed

bhauman 2020-06-10T16:21:06.243100Z

if you add (prn :hello) to you cljs file

bhauman 2020-06-10T16:21:25.243600Z

you will see in the console that something is printing

bhauman 2020-06-10T16:22:07.244400Z

same thing with putting (main) at the top-level of your file it gets executed

bhauman 2020-06-10T21:14:36.244900Z

hmmm having fun working on getting a sweet setup for https support