Cramping alot - and HARD!

I used to cramp at almost every CX race, mtb race, even hard workouts. Didn’t matter if was hot or cold. I tried a lot of different things but the cause was simply taking in too much water beforehand. I limit the liquid intake now and all is good - I haven’t cramped in a long time.