I need to do some actions after a new submission for a webform is created. So I have created a new handler, and I'm using the function:
public function submitForm(array &$form, FormStateInterface $form_state, WebformSubmissionInterface $webform_submission)
But this functions triggers whenever I edit the webform too. Is there a way to know if it's a new submission?