When you get into a relationship, make a real effort to hang out with friends who invite you to hang out with them
Once you are past the honeymoon period, make an effort to see your friends. You’d be surprised how easy it is just to settle in and feel like that one person can fulfill all your needs (or that the needs they don’t just start to seem unimportant). Maintaining your friendships, though, is actually really good for your psyche — it keeps you growing and grounded in a ways that are different than with your partner. Often there is a lot of inertia to socializing outside of a couples context or without your partner, particularly if you have a demanding job, but it’s worth it.
You might feel like you don’t really need your friends anymore, or that friends in general seem less important, but this is likely untrue and you could end up finding this out in a rough way. And just because you feel like you don’t need your friends doesn’t mean they don’t need you, or don’t notice you have disappeared.