Fork me on GitHub
#rum
<
2016-08-18
>
misha07:08:09

(def mx1 {...})
(def mx2 {...})
(def mx3 {...})
(rum/defc uses-many-mxs < mx1 mx2 []
  ...)
@martinklepsch @len no?

martinklepsch08:08:44

@misha: I was referring to something like composing mx1 and mx2 into a new thing and then using that new thing as the only mixing

Niki09:08:06

Rum composes mixins internally

Niki09:08:19

to do it from your code you need to write pretty simple piece of code

Niki09:08:41

like (merge-with comp m3 m2 m1) (if you want to m1 to go first)

Niki09:08:59

actually, that’s all. As simple as that

Niki09:08:19

@misha answer is correct as well

misha14:08:34

if those mxs are not generators, like rum/local