This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-13
Channels
- # beginners (36)
- # boot (1)
- # cider (4)
- # cljsrn (2)
- # clojure (137)
- # clojure-brasil (3)
- # clojure-czech (3)
- # clojure-italy (17)
- # clojure-nl (8)
- # clojure-spec (7)
- # clojure-uk (153)
- # clojurescript (84)
- # data-science (2)
- # datascript (13)
- # datomic (30)
- # editors (64)
- # emacs (22)
- # events (6)
- # figwheel (26)
- # fulcro (7)
- # hoplon (5)
- # jobs (5)
- # jobs-discuss (57)
- # keechma (3)
- # leiningen (4)
- # luminus (1)
- # midje (2)
- # off-topic (26)
- # portkey (18)
- # re-frame (4)
- # reagent (10)
- # ring-swagger (3)
- # shadow-cljs (135)
- # spacemacs (5)
- # sql (14)
- # tools-deps (125)
@tony.kay there is something flaky about fp/sc
, and I don't know whats that... but I was trying to switch from a some root generation code using fp/ui
to fp/sc
, it works initially, but when I have many of those running quickly it seems to get out of tracks
@wilkerlucio try 2.5.9-SNAPSHOT
@tony.kay still not working properly =/
hm…it is identical to ui now @wilkerlucio
I'm seeing some counterintuitive behaviour with a controlled text input and wondering if this is expected:
;; dom is: [fulcro.client.dom :as dom]
(defcard controlled-input
(dom/input {:value "should never change"
:onChange #(println "on change")}))
When I type in the input the value gets updated. I see that the input is rendered as a "wrapped-input" which is setting local state.
My expectation is that whatever I pass to :value should be rendered, what actually happens is the wrapped-input is setting local state and rendering that. I noticed that this happens as long as onChange is specified regardless of what it does (like in the example, not affecting state). Is that the expected behaviour?