Visa (valid) is just a travel document needed to enter the US. Assuming her H4 extension of status was done after you switched to your current employer, she can show the valid visa stamp, her current H4 I797 approval ( after you switched the employer) and copy of primary’s current H1B I797 to CBP at port of entry. CBP will issue I94 to match the expiry of her current I797.