This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-22
Channels
- # adventofcode (1)
- # beginners (172)
- # boot (47)
- # cider (7)
- # cljs-dev (30)
- # cljsrn (43)
- # clojure (180)
- # clojure-dusseldorf (1)
- # clojure-greece (1)
- # clojure-italy (3)
- # clojure-russia (41)
- # clojure-spec (67)
- # clojure-uk (101)
- # clojurescript (128)
- # core-async (4)
- # cursive (13)
- # datomic (29)
- # devcards (5)
- # emacs (19)
- # events (1)
- # hoplon (38)
- # lein-figwheel (1)
- # luminus (8)
- # midje (1)
- # off-topic (47)
- # om (10)
- # onyx (23)
- # protorepl (1)
- # re-frame (11)
- # reagent (7)
- # ring (3)
- # ring-swagger (9)
- # rum (6)
- # sql (5)
- # untangled (4)
In my reagent front-end, coded with cursors, using value on the cursor to read, and onChange on the cursor to write, the text entry fields are sluggish to type in. I don't have many components, but the text field relies on cursors built dynamically from cursors built dynamically from cursors, about 4 levels deep from the root. Why so sluggish? Is there a significant delay introduced by each cursor propagation so the round-trip of 8 hops is causing a slowdown? Something else?
@puzzler there are known issues with reagent and input field lag, unfortunately
a workaround might be to store input field data in a local atom and sync that atom with your cursor
does anyone know why my component lifecycle functions return nil
when i call reagent/props? If I log this
to the console i can see props in the props:
obj attribute
(defn constraint []
"Creates a button group that represents a query constraint."
(create-class
{:component-did-update (fn [this new-argv]
; TODO why is (reagent/props this) returning nil?
(.log js/console "this" this) ; I can see props in the js obj
(.log js/console "props" (reagent/props this)))
:component-did-mount (fn [this]
; TODO why is (reagent/props this) returning nil?
(.log js/console "this" this) ; I can see props in the js obj
(.log js/console "props" (reagent/props this)))
:reagent-render (fn [& {:keys [lists model path value op on-change]}]
[:div...
do props have to be a single map for reagent/props
to work?
https://github.com/reagent-project/reagent/blob/master/src/reagent/impl/component.cljs#L40