I can add an anecdotal data point to this. Intermittent fasting only started mildly working for me without making me feel weak and head-achy when I re-added electrolytes in the form of dill pickles, Lipton cup of soup or high enough dose supplements (Gatorade is not enough), especially before sweaty physical activity.