baby spitting up all her milk

CarrieH.
AB is 3 weeks old and loves her milk (formula and/or breastmilk) but every so often after she eats she spits almost everything back up. At first it was happening when she had breast milk so I just gave her formula and I few feedings later she still spit everything up. Also the only thing that does seem to happen every time she spits up is she has hiccups. So idk if it's the hiccups or she is allergic to something I'm eating or what? Anyone have any ideas?