Fork me on GitHub
#rum
<
2017-04-18
>
sniperliuhao01:04:05

could I modify dom generated by render-fn in :wrap-render mixin? like show a popup below the dom

sniperliuhao08:04:33

@tonsky thanks. Is there a way to dynamically assign mixin to a component? for example, i expect to put some mixin in dev mode. Or i could just switch off the mixin. One way i found in github is to avoid defc macros, use build-ctor instead.

Niki08:04:54

not in default rum, no

Niki08:04:05

but playing with build-ctor, I think it’s possible

martinklepsch10:04:26

@sniperliuhao I’m sure you can also define a mixin conditionally which does nothing (i.e. {})

martinklepsch10:04:40

(def my-dev-mixin
  (if (identical? true defines/DEV)
    {:did-mount ,,,}
    {}))

martinklepsch10:04:07

Maybe you could also use true? instead of identical?