Some perchlorate salts are hygroscopic, and some are not. For example, the sodium and magnesium salts are, but potassium and ammonium are not. Hence the use of the latter but not the former in rocket propellant. Magnesium perchlorate is sometimes used in electronic dehumidifiers.