Milk feeds at night

Asked for Female, 1 Years

My 5 month old baby is bottlefed with formula milk..if she sleeps for long stretch at night, for example 12 am to 6 am..then should she be woken up inbetween for bottlefeed..or should i give her the milk feed only on demand when she cries with hunger? Is it ok for 5 month baby to go 5-8 hours without milk when she is sleeping?should i let her sleep through night or wake her up at midnight for bottlefeed?Kindly advice.