Fork me on GitHub
#rum
<
2019-01-12
>
Vincent Cantin06:01:39

@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])).

Vincent Cantin06:01:54

The documentation may be outdated.

Vincent Cantin07:01:44

I guess that this is the current expected pattern for using a collection of children in Rum.

misha12:01:41

@bravilogy repeat returns clojure.lang.Repeat, convert it into list or vector

misha12:01:34

@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.