I have a component that, once it's all ready, I need to set the state based on a variable I'm reading in from XML. I tried doing it with creationComplete
, but it's apparently not ready, as the state isn't being set with elements rendering properly, but the states & rendering work fine if I do a subsequent state change with a click action on some element.
What should I do in this situation to make sure the state gets set at the right time & elements that should appear due to includeIn
exist so they can be rendered? initialize
instead of creationComplete
doesn't seem to do the trick for the first time the component is created. Any successive calls to the component are fine.