стоило ей

as soon as she

→ стоить
phrase Uncommon #25,050
as soon as she Used in the construction «стоило ей + infinitive, как…» to describe something that happened immediately after she did something.
RU: Стоило ей выйти из дома, как пошёл дождь.
EN: As soon as she left the house, it started raining.

Стоило ей погладить щенка, он умирал.

As soon as she petted a puppy, it would die.

— Ночной дозор (2004)

Стоило ей прийти, как она снова ушла.

As soon as she arrived, she left again.