L2 to H4 and work authorization


Me and my husband are on L1b and my husband got H1B this yr and will start working on H visa soon. My H4 is under processing and it will take around 2.5 months for it get approved.Until then am I eligible to work on L2 visa or since my husband will be on H1 my L2 EAD becomes invalid?