What happens to pending H4 EAD extension if I file H1B transfer?

Hi Anil,

How are you?

My spouse H1B extension is approved by USCIS for 3 years with old employer A

My spouse H1b transfer petition with employer B , is not approved by USCIS and still in progress

H4 and H4 EAD petition USCIS decision status still pending which was filed during H1B extension with old employer A

1)Do we need to file again H4 and H4 ead with new employer B if old employer withdraws H1b petition?

2)Also will USCIS issue same 3 years H1b validity period for H1 b transfer petition if approved?