Fork me on GitHub
#figwheel-main
<
2020-06-10
>
dominicm10:06:05

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

bhauman14:06:48

@dominicm have you tried the new :smart setting?

bhauman14:06:01

under :bundle-freq

bhauman14:06:19

yeah I can see that would be helpful

dominicm15:06:58

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

bhauman15:06:36

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

dominicm15:06:58

That was how I initially did it, yeah

dominicm15:06:18

Webpack creates watches on everything in node_modules

dominicm15:06:32

I ran out of file watchers

bhauman16:06:57

oh gee whiz

bhauman16:06:38

Thats pretty bad

Stuart16:06:14

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

(defn app []
    [:div
       [title]])
And change it to:
(defn app []
    [:div
       [title]
       [: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?

bhauman16:06:13

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

bhauman16:06:30

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

bhauman16:06:59

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

Stuart16:06:12

cool! THat worked 😄

Stuart16:06:36

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

Stuart16:06:47

How to set this up properly

bhauman16:06:04

actually reading that whole page is a good idea

Stuart16:06:59

Thanks, I'll have a read.

bhauman16:06:09

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

bhauman16:06:34

so if its all functions nothing is going to get execed

bhauman16:06:06

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

bhauman16:06:25

you will see in the console that something is printing

bhauman16:06:07

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

bhauman21:06:36

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

parrot 8