This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-22
Channels
- # aatree (21)
- # announcements (10)
- # avi (1)
- # aws (15)
- # beginners (96)
- # boot (269)
- # braid-chat (92)
- # cider (9)
- # clara (10)
- # cljs-dev (3)
- # cljsjs (14)
- # cljsrn (20)
- # clojure (198)
- # clojure-art (3)
- # clojure-hamburg (2)
- # clojure-ireland (4)
- # clojure-russia (117)
- # clojure-spain (3)
- # clojured (1)
- # clojurescript (253)
- # code-reviews (6)
- # community-development (7)
- # conf-proposals (52)
- # core-async (4)
- # cursive (4)
- # datomic (4)
- # devcards (1)
- # emacs (59)
- # euroclojure (5)
- # funcool (1)
- # hoplon (39)
- # human (1)
- # jobs (4)
- # ldnclj (15)
- # ldnproclodo (1)
- # leiningen (3)
- # mount (37)
- # off-topic (14)
- # om (77)
- # perun (10)
- # proton (12)
- # rdf (1)
- # re-frame (9)
- # reagent (42)
- # ring-swagger (10)
- # yada (50)
Hey guys, has anyone encountered this error message using reagent or re-frame?
Load failed: Jsloader error (code #1): Timeout reached for loading script /js/main.out/tomaton/components/dashboard.js?zx=kgscuwybhheb
I’m not sure where the right place to start looking for the problem is.It looks like a problem with the Google Closure Compiler. Maybe the host it is trying to fetch is not answering the request for the dashboard script on time
@yenda: depends on what task ou have running. https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-01.md this guide explains the tasks well.
sooheon: I already have an immediate feedback loop, for instance when I change a handler, I don't have to refresh
I havent used the system task, but I’m curious if it should come later in the task? Not sure.
I had a similar issue, and it was that I was using form-2 functions and not passing args to the inner fn
@shaym: yes, like I said the components are not updated but the handlers and subscriptions are
@yenda: figwheel triggers the on-js-reload event whenever a file is saved, i believe that force update is "heavier" then a render
@yenda: i believe that render does a diff , where force update recalculates the whole virtual DOM
I suppose I should be searching for a hook in boot-reload then to seek the same behavior
@jakemcc: i have considered FB , but i also need to hook up a db to the server , which is not easy to with FB
does anybody know how to use the :on-set
attrib in reagent's make-reaction
function? I set a function for it like (fn [oldv newv] (println "on-set"))
and it never prints
@mpdairy: it looks like on-set is only called during reset!
, which doesn't make much sense in a Reaction. However, this example will trigger it:
(def num (r/atom 5))
(def doubled (reagent.ratom/make-reaction #(* 2 @num) :on-set (fn [oldv newv] (println "onset" oldv newv))))
(println "num:" @num "doubled:" @doubled)
;=>num: 5 doubled: 10
(reset! num 7)
(println "num:" @num "doubled:" @doubled)
;=> num: 7 doubled: 14
(reset! doubled 11)
;=> onset 14 11
(println "num:" @num "doubled:" @doubled)
;=>num: 7 doubled: 14