Fork me on GitHub
#fulcro
<
2018-06-13
>
wilkerlucio15:06:35

@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

tony.kay17:06:43

ah, that may be the issue

tony.kay20:06:51

@wilkerlucio try 2.5.9-SNAPSHOT

wilkerlucio20:06:14

@tony.kay still not working properly =/

tony.kay21:06:09

hm…it is identical to ui now @wilkerlucio

tony.kay21:06:07

maybe try a careful clean?

dvingo23:06:53

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?