Should this be inside the if block for `!mounted` ?