This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-24
Channels
- # 100-days-of-code (7)
- # announcements (1)
- # bangalore-clj (1)
- # beginners (87)
- # boot (6)
- # cljdoc (16)
- # cljsrn (13)
- # clojure (32)
- # clojure-dev (30)
- # clojure-italy (18)
- # clojure-nl (4)
- # clojure-serbia (1)
- # clojure-uk (48)
- # clojurescript (18)
- # cursive (18)
- # datascript (1)
- # datomic (7)
- # events (9)
- # figwheel-main (28)
- # fulcro (2)
- # hyperfiddle (2)
- # immutant (8)
- # jobs (16)
- # liberator (4)
- # nyc (2)
- # pedestal (15)
- # re-frame (8)
- # reagent (12)
- # reitit (8)
- # remote-jobs (1)
- # ring-swagger (2)
- # robots (1)
- # rum (1)
- # schema (1)
- # shadow-cljs (45)
- # spacemacs (49)
- # sql (13)
- # tools-deps (59)
- # uncomplicate (1)
- # vim (10)
The event handler function for your browser event delegates the logical event to a re-frame event handler, roughly like this: (dispatch [:my-event (.. browser-event -target -value)])
Hi!
I have a reg-sub-raw
and inside it I do a subscribe
. I want to do something like add-watch
to atom of the subscribe
, is there a possibility to do that? Cause right now watches
is added but on change it does not trigger callback.
(reg-sub-raw
::test
(fn [_ _]
(let [my-ratom (subscribe [::get-token])]
(add-watch my-ratom :key (fn [_ _ _ new]
(println new))))))
Then
(dispatch [::change-token "a"]) ;; Changes token in db
Thanks!Why would http-fx
call the on-failure
handler when Chrome reports that the request succeed and I can see the json response in the Network-XHR
tab?
@mac perhaps the status code is 400 or higher?