You sweat out salt, so you have to put it back. That is why you cramp, that is why you fade in the heat, and that is why water alone will not cut it. Find out your sweat rate, find out how salty you are, and match what you take in to what you lose.
The endurance field studies point the other way. In a 161 km mountain ultramarathon where 94 percent of runners took salt capsules, about one finisher in fifteen still ended the race with low blood sodium, and how much salt a runner took did not separate those who did from those who did not. Across five desert ultramarathons, neither the rate nor the total amount of supplemental sodium was linked to blood sodium ending too low or too high. In 210 Ironman triathletes, the ones who cramped had the same serum electrolytes and the same weight change as the ones who did not; what set them apart was racing faster and having cramped before. And the sodium emergency that has actually killed endurance athletes runs the opposite way to the marketing: in the Boston Marathon, the runners who finished with dangerously low blood sodium were the ones who finished heavier than they started, and what they drank made no difference, only how much.
The story sells sodium as the thing standing between you and collapse, while the sodium crisis that actually puts endurance athletes in hospital is too little of it in blood diluted by too much water.