Worth separating two things that the opening post runs together.
Potassium: similar to sodium; losing weight involves some potassium loss. Bananas, sweet potatoes, and other potassium-rich foods help. Severe depletion is rare but symptomatic (weakness, palpitations).