This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-29
Channels
- # admin-announcements (2)
- # beginners (4)
- # boot (6)
- # cider (18)
- # cljs-dev (22)
- # cljsrn (13)
- # clojure (76)
- # clojure-czech (2)
- # clojure-dusseldorf (2)
- # clojure-russia (45)
- # clojure-sg (1)
- # clojure-spec (15)
- # clojurebridge-ams (6)
- # clojurescript (58)
- # cursive (4)
- # datomic (14)
- # dirac (31)
- # emacs (6)
- # funcool (2)
- # hoplon (2)
- # lein-figwheel (1)
- # om (124)
- # planck (17)
- # re-frame (12)
- # slack-help (11)
- # specter (12)
- # tmp-json-parsing (6)
- # yada (4)
A wild bug appeared apparently.. https://github.com/JulianBirch/cljs-ajax/issues/141
The React Native tutorial with vanilla JS works, not sure why this can't make GET requests
(def fetch (.-fetch js/window))
(register-handler
:load-data
(fn [db _]
(.then (fetch "") #((.warn js/console (.stringify (.-JSON js/window) %1)(dispatch :process-data %1))))))
guys, can anyone explain to me why these 2 implemented as macros, not as functions?
(ns natal-shell.data-source)
(defmacro data-source [config]
`(js/React.ListView.DataSource. (cljs.core/clj->js ~config)))
(defmacro clone-with-rows [ds rows]
`(.cloneWithRows ~ds (cljs.core/clj->js ~rows)))
@misha, not a re-natal developer, but these look like should be rewritten as simple functions
@debug, now what you mention it, I saw a similar issue when porting my code to Android, and also ended up using js/fetch
directly
why is https://github.com/facebook/react-native/issues/3115 closed? is it solved in recent RN versions?
anyway we should get this fixed, either in RN/android or in cljs-ajax