Line-connection component does not update when added in JavaScript

The line-connection component seems to sometimes not run. I set targetA and targetB after the addComponent().
Any ideas?

You can set it with addComponent instead maybe. It’s ```js
this.object.addComponent(‘line-connection’, {targetA: …, targetB: …});