doctor prescribed my 2 month old flavored pedialite?

My daughter has pink eye and hasn't been eating well in the last 24 hrs/ only had had about 4oz so of course we went to the doctor, he gave her GRAPE pedialite to keep her from getting dehydrated since she's not eating. Has anyone given such a young baby flavored pedialite? She's finally eating right now and if need be I'll give her water or go buy unflavored. Has anyone given their baby under 6mo flavored pedialite?