Don’t be panic. I would suggest first take her along with you as a dependent and get H4 stamped even though her H1B is in process. Before her travel to US, if her petition is approved, then ask her to attend interview and travel with H1B instead of H4. If not, ask her to travel on H4 and in future if its approved, then she has to go out of country or file change of status to use her approved H1B. Let me know if you have any further queries.