Unclarity of onStateChange of AbstractJavaScriptComponenet

Hi guys,

could anyone point me to maybe an error causing the connector function in the javascript part like org_someproject_component = function() {…} be called for every State change using the getState() of the respective AbstractJavaScriptComponent? In that respective function I need to initialize a WebGL renderer using Three.js, and since I have multiple instances of that JavaScript component, they all need to behave completely independantly.

Now I would expect that when using getState() to change the JavaScript-State externally, that only this.onStateChange() would be called, but instead it calls the connector wrapper function every time. Is that expected behaviour?