This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-26
Channels
- # arachne (80)
- # beginners (76)
- # boot (16)
- # cider (66)
- # cljs-dev (62)
- # cljsjs (1)
- # clojure (106)
- # clojure-dev (5)
- # clojure-greece (2)
- # clojure-italy (9)
- # clojure-russia (1)
- # clojure-spec (61)
- # clojure-uk (130)
- # clojurescript (21)
- # core-async (9)
- # cursive (3)
- # datomic (37)
- # events (41)
- # figwheel (31)
- # fulcro (27)
- # hoplon (1)
- # jobs (2)
- # lumo (11)
- # off-topic (155)
- # re-frame (71)
- # reagent (27)
- # ring-swagger (3)
- # shadow-cljs (132)
- # spacemacs (5)
- # specter (1)
- # sql (37)
- # test-check (10)
- # uncomplicate (5)
- # unrepl (2)
- # yada (3)
is there a way to execute a callback every time figwheel successfully re-compiles?
@currentoor call it in a fn, say it is called my.app/on-js-reload
Then add :figwheel {:on-jsload "my.app/on-js-reload"}
to your relevant :cljsbuild
Assuming you are using Leiningen, lein-cljsbuild
, and figwheel
@mikerod thanks for answering, but actually i meant on the back in the JVM
i want to hear a ting sound when it compiles successfully and a AANG sound when it fails to re-compile
like boot-reload
when does that ring handler get called by figwheel?
i thought that was to load assets?
no worries 😄
right
yeah maybe i should look into that
You could maybe also do a big hack and havve your JS reload handler send a request to the server to tell it it reloaded
(except I guess that’d be JS reloads, and perhaps not the server-side ones you are looking for)
sounds good, thanks!