The critical thing is avoiding exposure to any electric supply until dry. Washing in clean, if not deionised, water helps.
My daughter dropped an early iphone in an upland stream, I got it and switched it off within about ten seconds although the screen was already psychedelic. It went on to last years.
I've heard firsthand reports of boards being cleaned in dishwashers successfully, and rescued things saturated in coffee by washing them.
Most vulnerable are mechanical parts like switches, relays and potentiometers. And edge connects if not gold plated .