This means that right after one thing happened, another thing happened very quickly. It shows a fast and often surprising change.
さっき、。
Just when I thought it had been sunny until a moment ago, dark clouds suddenly spread across the sky.
、。
No sooner had that player scored a goal than he was already running for the next play.
さっき、。
Just when I thought the baby was laughing a moment ago, it's already crying now.
、。
Just when you think a new store has opened, they often close down without even lasting a year these days.
に、。
Just when I thought he had come into the room, he left right away without saying anything.