Sounds like this friends and family don't simply have the beliefs, they are being obnoxious with sharing them? It'd be reasonable to inform them you'd rather not hear that talk anymore. If they continue then certainly, ignoring them would be justified. But simply to have happenstance knowledge of their beliefs and completely forswear them on this basis would be shallow behavior itself. Quite a few acquaintences, some friends, and a few family frequently talk racist trash. It's easily enough ignored. But I have yet to see any of them demonstrate discriminatory behavior. That would be a different thing altogether. Belief does not equal behavior. Don't let their beliefs alter your behavior.