for example, after I use soak on a pichu, will its STAB type change to water instead of electric? or will its electric moves still get STAB boost?
In short, yes. For your example, it's electric moves would not get STAB because they are changed to the water type. If it had water type moves, those would get STAB.
source: experience
How to change your username How to add a user avatar Why was my post hidden? Question etiquette Flags vs Downvotes Anime FAQ Official PokemonDb League
Type a Pokemon name, type, move or ability to see instant results.