Weird 3 AM thought...

FTM here! So, my 6 month old daughter is going through a period where she is now waking up 2-3 times a night after sleeping through the night since she was less than a month old. As I was half-asleep nursing her at 3:30 this morning, I had a thought that had me scratching my head. What do I do if she wakes up in the night once I stop EBF? My first instinct is to always feed her. What do you ladies do when/if your babies wake up in the night once you are giving them food and not formula/EBF? In case this is a stupid question, I'm choosing to post this anonymously. Thanks!