Baby not gaining weight

Mrs.A
My almost 4 week old only gained a half an ounce in the last three weeks. She's EBF but I'm so scared I'll have to start giving her formula if she doesn't gain weight by her next appointment in two weeks. Anybody else have an issue like this and be able to keep EBF?