This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-29
Channels
- # aws (1)
- # aws-lambda (2)
- # bangalore-clj (3)
- # beginners (26)
- # boot (25)
- # braveandtrue (1)
- # cider (5)
- # cljsrn (7)
- # clojure (144)
- # clojure-android (2)
- # clojure-czech (1)
- # clojure-greece (3)
- # clojure-italy (17)
- # clojure-poland (5)
- # clojure-russia (25)
- # clojure-spec (9)
- # clojure-uk (100)
- # clojurescript (85)
- # core-async (42)
- # cursive (11)
- # datascript (2)
- # datomic (25)
- # duct (3)
- # emacs (5)
- # figwheel (2)
- # fulcro (49)
- # graphql (16)
- # hoplon (8)
- # klipse (10)
- # leiningen (10)
- # lumo (9)
- # off-topic (12)
- # om (14)
- # onyx (25)
- # planck (34)
- # portkey (6)
- # re-frame (43)
- # reagent (4)
- # remote-jobs (2)
- # ring (36)
- # ring-swagger (1)
- # rum (1)
- # shadow-cljs (187)
- # specter (25)
- # sql (5)
- # unrepl (75)
Hi, I'm having a problem which drives me crazy. 🙂 Namely my view is not beeing rendered at all as soon as the root comonent implements om/IQuery
, and I can't figure out why
when I comment the IQuery part, everything is ok, but as soon as I put it back, my view is not rendered at all (with no errors & co)
yes, everything (except computed data like callbacks, and React local state) is stored in the graph db and normalized with the help of Ident metadata that you provide on components
@snichme yes, I have. everything works fine until I make my component implement om/IQuery
here's the core
(defui RootView
;static om/IQuery
;(query [this]
; [:count])
Object
(render [this]
(let [{:keys [count]} (om/props this)]
;(println "Rendering counter, count=" count)
(dom/div nil
(dom/span nil (str "Count: " count))
(dom/button
#js {:onClick
(fn [e] (om/transact! this '[(increment)]))}
"Click me!")))))