trying to figure out how to get rid of warning "Cannot infer target type in expression" when i try
:on-change #(emit :page-login-ssn-changed (.-target.value %))
(.-target (.-value %))
or (.. % -target -value)
.-target.value
is not valid cljs, it happens to work by accident, but probably doesn't work with infer code.
Or maybe you need to tag the event object,
(fn [^js/Event e] (.. e -target -value))
Found this: https://github.com/reagent-project/reagent/blob/master/doc/ManagingState.md and it shows the faulty version
However i try to change it
(.. % -target -value)
Works 🙏