H1B travelling outside while H4 spouse stays in USA with pending H4 extention

Hi,
I (H1B approved petition holder) am planning to travel to India from USA. But, my spouse still does not have approved H4, it is in pending. I actually recently changed companies, due to which H1B was transferred and H4 was refiled.

We had Approved H1B and H4 both before making the switch to new company till Dec 2022. But now my H1B is approved till 2024 and my wife’s H4 is pending.

Can I travel to India, will her status remain valid?

This should be no issue. She will still be in the pending extension of status.