Currently, emitter logs do not properly log the component ID. This is because the ID is passed in to the Emitter constructor when the Component is constructed here. At this point, the Component ID is undefined unless specifically passed. The component's ID that is set later in study prep is not reflected in Emitter.
This fixes the issue by passing in the component reference to the Emitter and accessing the ID through the Component. Also changed the first argument to the required instead of optional to simplify the interface.
Currently, emitter logs do not properly log the component ID. This is because the ID is passed in to the Emitter constructor when the Component is constructed here. At this point, the Component ID is undefined unless specifically passed. The component's ID that is set later in study prep is not reflected in Emitter.
This fixes the issue by passing in the component reference to the Emitter and accessing the ID through the Component. Also changed the first argument to the required instead of optional to simplify the interface.