Closed onsetsu closed 5 years ago
I tried to reproduce it... but failed so far...
Can we reproduce it somehow here?
https://lively-kernel.org/lively4/lively4-jens/templates/foo-comp.html https://lively-kernel.org/lively4/lively4-jens/templates/foo-comp-sub.js
seem to work since it did not happen again
Currently, race conditions may happen, as with the
Graph-Control
component.The
Graph-Control
uses aKnot-View
defined in its template:This subcomponent is accessed in its
initialize
method:Problem: In some scenarios, the
initliaze
method is called, before theKnot-View
is fully loaded and initialized, so,setLabel
is not understood.Potential fix: properly wait recursively for all components defined in the shadowroot and as children, before calling
initialize
.