This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-29
Channels
- # adventofcode (4)
- # beginners (113)
- # boot (165)
- # cider (192)
- # cljsrn (82)
- # clojure (148)
- # clojure-austin (6)
- # clojure-russia (22)
- # clojure-spec (45)
- # clojure-uk (19)
- # clojurescript (153)
- # core-async (5)
- # cursive (7)
- # datomic (2)
- # defnpodcast (2)
- # emacs (1)
- # hoplon (617)
- # instaparse (10)
- # lein-figwheel (19)
- # luminus (2)
- # off-topic (12)
- # om (3)
- # onyx (36)
- # pedestal (1)
- # protorepl (43)
- # re-frame (8)
- # ring (7)
- # specter (17)
- # testing (2)
- # untangled (117)
- # yada (12)
The reason I asked is that the call to my old on-jsload
function still is the old one, but if I execute it in the console manually, it runs the new one
by dumping the on-jsload
param here: https://github.com/bhauman/lein-figwheel/blob/b187d9a4535e96d49f24c01579c30d11715b0fe8/support/src/figwheel/client/file_reloading.cljs#L385
I can still see the old function coming in, not the new one
of course this is not a problem in vanilla figwheel, but I cannot understand how, the on-jsload
function is part of the options
mmm I see that if I change the below in figwheel vanilla, the code in the console changes For instance in:
(defn on-js-reload []
;; optionally touch your app-state to force rerendering depending on
;; your application
(.info js/console "Reloading Jav221asxsra..."))
very weird that I don't get the same behaviour, I will investigate more
ah! the called function is different, boot calls my version dirctly, vanilla calls:
Calling on-jsload function (var_args){
var x = null;
if (arguments.length > 0) {
var G__29653__i = 0, G__29653__a = new Array(arguments.length - 0);
while (G__29653__i < G__29653__a.length) {G__29653__a[G__29653__i] = arguments[G__29653__i + 0]; ++G__29653__i;}
x = new cljs.core.IndexedSeq(G__29653__a,0);
}
return G__29652__delegate.call(this,x);} with res ({:file "resources/public/js/compiled/out/fig_boot_reload/core.js", :namespace "fig_boot_reload.core", :type :namespace, :loaded-file true})
basically I have probably missed a call to some setup function that wraps on-jsload
in something else
cool looks like I still have some work to do 😉
@bhauman for today is enough 🙂 Thanks for your help and patience for now