This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-06
Channels
- # admin-announcements (1)
- # alda (2)
- # beginners (5)
- # boot (59)
- # clara (6)
- # cljs-dev (40)
- # cljsrn (32)
- # clojure (28)
- # clojure-austin (1)
- # clojure-belgium (67)
- # clojure-greece (60)
- # clojure-ireland (1)
- # clojure-japan (1)
- # clojure-russia (55)
- # clojure-spain (14)
- # clojure-spec (39)
- # clojure-uk (26)
- # clojurescript (152)
- # clojurewerkz (1)
- # cursive (21)
- # datomic (3)
- # dirac (15)
- # emacs (7)
- # events (2)
- # funcool (4)
- # hoplon (43)
- # immutant (1)
- # lambdaisland (1)
- # lein-figwheel (6)
- # leiningen (1)
- # off-topic (1)
- # om (23)
- # onyx (67)
- # other-languages (6)
- # pedestal (7)
- # planck (13)
- # proton (3)
- # protorepl (2)
- # re-frame (6)
- # reagent (5)
- # ring-swagger (6)
- # spacemacs (1)
- # specter (2)
- # yada (27)
@misha: Got that fixed, turns out db
should be returned by the handler and the promise was being returned
if that fn you are returning is called by js - every argument it receives is a js thingy
shake the device simulator -> enable browser debugging it'll print exceptions in the console. some will have only js code "lines", some will have cljs ones
I've seen cljs ones with Yellow boxes though, but they're very rare, and when they do show up, very helpful
The tools seem so immature though from the react-native side, they don't even support Chromium had to soft link to fake Google Chrome
I think you'll see cljs references for everything that can be caught with lein cljsbuld once
. other stuff goes through react bridge and native code at some point before crashing, and expecting cljs source maps working there is a bit optimistic, I think
Is this valid? (defn scrollable-root [] (fn [] [view {:style {:flex 1}}]))
Because nothing renders when referencing it this way [scrollable-root ....]
(defn scrollable-root [] [view {:style {:flex 1}}])
(def root (with-meta scrollable-root {:component-did-mount #(dispatch [:load-data])}))
(def get-row #(reagent.core/as-element [text {:style {:height 48 :textAlignVertical "center"}} (str "Index: " %)]))
(defn app-root []
(let [data (subscribe [:get-data])]
(fn []
(js/console.warn @data)
[root
[toolbar {:title "FutureApp" :style {:height 56 :flexDirection "column"}}]
[listview {:style {:paddingLeft 8 :paddingRight 8 :flex 1}
:dataSource (.cloneWithRows (datasource. #js {:rowHasChanged not=}) (clj->js @data))
:renderRow get-row}]])))