I too started having leg cramps since doing the Whole30, it's really messing with my sleep. I started taking Magnesium well before the Whole30. I also eat a lot of asparagus which has lots of Potassium. I am also waking up a lot to urinate which I never used to. Any suggestions would be appreciated.