Fork me on GitHub
#figwheel-main
<
2019-07-16
>
cjohansen10:07:12

I'm making responsive adjustments and would like to run figwheel in two browsers concurrently. However, it seems that only the browser that last had focus gets updates from figwheel, the other one seems to stop updating - requiring a hard refresh to start updating (at which point the other browser stops). Do I have to configure this somehow? Is it browser-related? I'm in Chrome, but could use others as well.

cjohansen13:07:48

it did actually work for a little while here, but one of the browsers seem to disconnect very easily. would love some insight into what's causing this - I suspect it has something to do with browsers over zealously deprioritizing background work?

aisamu02:07:41

This was figwheel's previous behaviour, and IIRC figwheel-main has a broadcast setting somewhere to re-enable it

dimovich07:07:04

@U9MKYDN4Q I had the same issue when connecting with multiple devices to same figwheel instance. Only the last device was receiving the updates. Didn't try in the last months. Maybe sth changed. Try this -- https://figwheel.org/config-options#broadcast

cjohansen07:07:44

It seems to work now, even if I didn't change anything. I think it works, but is perhaps a bit flaky, possibly due to aggressive background deprioritization by the browsers? If I interact with both clients on a regular-ish basis, they both stay up to date

lepistane18:07:59

Hi i am using figwheel template and i did clj -A:fig:min to do advanced build but when i open index.html i get <proj>resources/public/cljs-out/dev-main.js net::ERR_FILE_NOT_FOUND

lepistane18:07:02

why is this?

lepistane18:07:11

i am actually trying to do this https://betweentwoparens.com/deoploy-clojurescript-to-github-pages but with figwheel main template