@bravilogy I have the same problem when I run it on my computer. As a workaround, it works if you change it to (into [] (repeat n [:.label text]))
.
The documentation may be outdated.
I guess that this is the current expected pattern for using a collection of children in Rum.
@bravilogy repeat
returns clojure.lang.Repeat
, convert it into list or vector
@sova
your input on-change mutates input-state
atom, which looks like is watched by many other components. If you need state in the single atom, you'd want to subscribe other components (and the one in your example) to a specific path within the atom. See rum/cursor-in rum/cursor rum/derived-atom
https://github.com/tonsky/rum/blob/gh-pages/src/rum/core.cljs#L438-L455
https://github.com/tonsky/rum/blob/gh-pages/src/rum/core.clj#L250-L289
Or, maybe even better, reimplement other components as a rum/static
ones.