Having a hard time holding bladder

Paige
I don't have any infections. I'm 29 weeks and 3 days pregnant with my first baby (boy). I use to have a harder time holding my pee, usually when i'd laugh or cough. But lately it's been happening again. What causes this and what can i do to prevent from almost peeing my pants so often?