Re: [ClojureScript] Can I make any updates to a Clojurescript Om component in the InitState?

2014-09-08 Thread Zubair Quraishi
On Sunday, September 7, 2014 6:20:55 AM UTC+2, Chris Jones wrote: On Saturday, September 6, 2014 11:40:04 AM UTC-7, Zubair Quraishi wrote: I am updating the top most item, so it has no parent in that way.Ok, so if use IWillMount how can I tell whether it is in render state or not?

Re: [ClojureScript] Can I make any updates to a Clojurescript Om component in the InitState?

2014-09-06 Thread Chris Jones
On Saturday, September 6, 2014 11:40:04 AM UTC-7, Zubair Quraishi wrote: I am updating the top most item, so it has no parent in that way.Ok, so if use IWillMount how can I tell whether it is in render state or not? IWillMount is the way to go. The 'rendering?' function will tell you if React

Re: [ClojureScript] Can I make any updates to a Clojurescript Om component in the InitState?

2014-09-05 Thread Daniel Kersten
I personally avoid doing anything impure in IInitState. To me it seems that it should be a pure function returning a map of the local state. IWillMount is a better place to do things. Could you perform the updates in the parent? On 5 September 2014 10:23, Zubair Quraishi zuba...@gmail.com