This is the 5928th most frequent Japanese word.
やいなや
"やいなや" means "as soon as" or "the moment."
In this sentence, 'やいなや' is used to indicate that one action immediately follows another.
ドアが開くやいなや、彼は部屋に飛び込んだ。
As soon as the door opened, he dashed into the room.
Here, 'やいなや' signals that the action occurred right after the bell rang.
ベルが鳴るやいなや、学生たちは教室を出て行った。
The moment the bell rang, the students left the classroom.
'やいなや' is used to emphasize the immediacy of the reaction to the starting of rain.