diaper change

when a baby starts to sleep for more than 5 hours at night did you change their diaper or just wait until they woke up?