This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-10
Channels
- # beginners (50)
- # cider (112)
- # cljs-dev (7)
- # clojure (34)
- # clojure-brasil (1)
- # clojure-greece (4)
- # clojure-italy (8)
- # clojure-nl (14)
- # clojure-russia (4)
- # clojure-uk (94)
- # clojurescript (96)
- # clojutre (5)
- # cloverage (1)
- # cursive (5)
- # datomic (59)
- # docs (53)
- # figwheel (4)
- # fulcro (1)
- # hoplon (1)
- # hyperfiddle (3)
- # jobs (3)
- # luminus (6)
- # nyc (3)
- # off-topic (9)
- # onyx (3)
- # overtone (4)
- # re-frame (2)
- # reagent (16)
- # reitit (9)
- # ring (2)
- # ring-swagger (1)
- # rum (1)
- # shadow-cljs (81)
- # spacemacs (14)
- # specter (12)
- # sql (1)
- # tools-deps (2)
- # vim (110)
If I call reagent.core/track!
like so:
(reagent/track!
(fn []
(let [x @(rf/subscribe [::my-sub])]
(println "CHANGED --")
(prn x))))
It only prints the change after a hot reload, not when the subscription changes. I can see in the re-frame-10x panel that ::my-sub
is changing but my function passed to track!
is not called. Any idea why?Do you need to create the sub on the outside?
And deref it inside?
Interestingly, if I load the namespace in the REPL, the handler function gets called and the changed value is printed.
The namespace is definitely required in the app though so not sure why loading the ns in the REPL changes anything.
hello all, how to I convert this
onHeaderRow={(column) => {
return {
onClick: () => {}, // click header row
};
}}
to clojurescript for using with reagent?not really assignment there, but if you had it in a map instead for the :onHeaderRow
part