Breastfeeding and sleeping babies!

At what point is it ok to let your baby sleep as long as they want and feed at that point? Just curious.