while changing visa status,can i travel to india after my h4 is approved, even if my h4 ead decision is still pending?

I am currently on f1 OPT, which ends in January. If i apply for a change of visa to h4 and h4 ead together, can i travel to India, after 1 get the h4 approval, and while my h4 ead approval is still pending?

If you get H-4 COS approved and then travel outside US, EAD will still be processed.

If you leave US while H-4 COS is still pending, then EAD is abandoned as H-4 COS will become void.