Replacing logic to render within the framework and just emitting an error event