Fork me on GitHub
#figwheel
<
2018-10-17
>
llsouder14:10:44

lein figwheel updates my page perfectly, but when I ran a repl in spacemaces and did

(use 'figwheel-sidecar.repl-api)
(start-figwheel!)
(cljs-repl)
Emacs evals work great, but when I save I see the clojure icon appear in my browser but nothing updates unless I do a shft-refresh... Same behavior in incognito mode. What the heck I am doing wrong?

llsouder16:10:52

.log has

[0mCompiling "resources/public/js/compiled/app.js" from ["src/cljs"]...[0m
[32mSuccessfully compiled "resources/public/js/compiled/app.js" in 1.526 seconds.[0m
notifying browser that file changed:  resources/public/js/compiled/out/cljs_deps.js
notifying browser that file changed:  out/track_work/views.js

llsouder16:10:13

but no update with out a browser refresh?

alexhrescale18:10:46

Is there a way to make the browser reconnect the cljs-repl connection after it has failed or went stale for a long time, from the dev console? I couldn’t find information on this from googling

alexhrescale18:10:50

I have poked around the figwheel.client object in the console but it doesn’t seem to provide a method to reconnect

alexhrescale18:10:25

hmm, maybe it’s figwheel.client.ensure_cljs_user()

Joe R. Smith23:10:12

hello! Could anyone point me at / tell me how to connect to the cljs-repl from the clj rpel started by figwheel.main? I’m connecting to the clj repl using Cursive, but have no idea how to connect to the cljs-repl from there.