Fork me on GitHub
#reagent
<
2017-03-27
>
renewdoit02:03:37

Is it OK to put an atom into argments? like (defn my-component [an-atom])?

noisesmith02:03:21

yes, that's the only way we use the state atom in my webapp

renewdoit02:03:11

Thanks@noisesmith, it make me feel better than refer some var outside.

odinodin07:03:44

Regarding create-class and :should-component-update, what is the first element in the old-argv and the new-argv? The component before and after the update?

odinodin07:03:34

the documentation got me confused; seems i have to do this to get at the arguments passed to the component :should-component-update (fn [this [_ & old-args] [_ & new-args]])

tomaas14:03:56

Hi, I added [cljsjs/react-datepicker "0.41.1-0"] to my project it says Uncaught ReferenceError: DatePicker is not defined

tomaas14:03:30

in its extern.js file the var is called DatePicker

tomaas14:03:54

anyone knows what could the reason be?

tomaas14:03:28

I'm using [cljsjs/react-select] the same way and it works well