Correctly emits events in components when linking/unlinking