My mother is toxic to my family

My mother is a hateful person. She’s made it clear that she’s a racist/homophobic who has internalized misogynistic issues. She does this under the name of “being a Christian”. She does do a lot for my kids and does seem to genuinely love them, but I know that if one of them ended up being gay or with someone of another race, she would make her disapproval known and I just can’t have that. My question is, should I just cut contact completely and hurt my kids in the process? Or just limit contact? I’m so torn. I always feel so drained after we spend time with her, but my kids seem to love her a lot