It’s not advisable to travel when your transfer is in process. Either way, do not go by advice you receive here, talk to the attorney.
While it's advised to refrain from any travel outside US when your H1B is being transferred, talk to your lawyer. Get your approved I797 and other papers and then plan your travel accordingly.
I would hold off on travel, it should go through in a few days
I have my wedding planned in 3 weeks. New organization Lawyer team is working towards applying h1 transfer. Does my travel effect approval odds?
Talk to the lawyer