Fork me on GitHub
#reagent
<
2017-02-26
>
metametadata11:02:04

@pupeno (r/current-component)?

pupeno11:02:37

Let me see.

pupeno11:02:48

I tried comp/current-component and it was nil.

pupeno11:02:33

No, it's nil.

metametadata11:02:00

hm, works for me:

:reagent-render
       (s/fn reagent-render
         [{:keys [config on-change]} :- Props]
         (println "current-comp" (nil? (r/current-component))) ; --> false
         ...

metametadata11:02:05

make sure you don't call it inside event handler

pupeno11:02:18

Ah! yes, I'm doing that.

pupeno11:02:54

Yes, it works.

pupeno11:02:57

Thank you.