emit on hooks when creating components