I’ve been using EntitiesObserver to detect if an ComponentInstance is added or removed to the entities set. But I found that EntitiesObserver cannot detect the ComponentInstance if it is added or removed inside a Group or a DynamicComponent. So I add the same EntitiesObserver to the Groups and Components. Unfortunately the onElementAdded and onElementRemoved is not called if a ComponentInstance is added or removed, although it worked for Edge and Faces.
I found a “workaround”, by adding the Group and Components EntitiesObserver first before the active_model EntitiesObserver the methods will be called properly. But I cannot do that to the new components that is added after