I believe in eating on the bike and have found it more successful and easier to drink my food. I use a mix of maltodextrin and whey protein, 7:1 by weight. I put up to 750 calories per bottle, whatever I think I'll need on the ride. My other bottle is plain water. I don't believe in mixing electrolytes into my water. The ratio of electrolyte loss to water loss is not the same in all conditions. I drink to thirst and if necessary, add to my thirst by talking Endurolytes. the standard caps, 1-2/hour, so that's a max of 80mg sodium/hour, even during 105° long climbs.
I should add that I eat a relatively low salt diet. The less salt you eat, the less you need to replace on the bike. I never have white patches on my shorts. Recommended salt intake is between 2500mg and 5000mg total per day.
https://www.hammernutrition.com/knowledge/essential-knowledge/less-is-best
https://www.heartfoundation.org.au/health-professional-tools/sodium-and-salt-converter