Doctor said no milk for 24 hours??

s

My 10 month old baby caught a stomach virus we all had it on Tuesday everyone is better now but for my little guy the diarrhea is still lingering he has a lot of dirty diapers through out the day and he looks like he probably lost a pound or two. His doctor told me to not give him any milk for 24 hours only water or pedialyte, chicken soup, crackers etc. he’s doing fine he’s not fussy or crying he’s actually himself and crawling all around but he’s now crying for his milk (formula) 😥 has anyone else’s doctor told them not to give their babies milk when they caught a stomach bug?