There are a few schools of thought on this (see above). For me, I coslept and night nursed every 3ish hours until my kids were past a year old. There were several reasons I did this:
1. I was well-rested b/c I never had to get out of bed. Our sleep cycles synced such that I stirred when the baby did, latched them on, then fall immediately back to sleep.
2. It kept my periods away until well past 1 year post-partum (health benefits as well as extra insurance against an earlier pregnancy (we used other BC too)).
3. It was a nice way to reconnect and bond at nighttime - DH and I liked having the baby in our room and bed
I know that my kids were genuinely hungry at night at 10.5 months old and I was fine with nursing them then (we didn't do CIO). As they got into toddlerhood I gradually nightweaned them and it was very clear which feedings were habit vs. which were hunger.
This approach may not work for you, but it was a good approach for us .
Mom of 4: Boy (10), Girl (7), Boy (4), Girl (2)