KCNA3 and familial primary hypomagnesemia: Hypomagnesemia can lead to muscle spasms through mechanisms such as affecting the concentrations of sodium, potassium and calcium ions in cell membranes and regulating the renal outer medullary potassium channels located in the distal nephron (Varghese et al., 2020).