I don't think it's the case that there is necessarily a genetic link or that if someone in your family miscarried it's more likely you will do too...it's much more complex than that. Miscarriage is sadly all too common with around 1 in 4 pregnancies ending this way (although research has suggested this figure may actually be too low!) so it may seem as though it "runs in the family" for some people but is actually just bad luck. There are some causes of miscarriage however which may have a genetic component so if it is a contributing factor in one woman's miscarriage and then her daughter or sister has the same problem then that would make her at increased risk of miscarrying too (if that makes sense, not sure i'm explaining myself properly?!)
I have had three pregnancies so far, with only one of those ending in a healthy baby born at full term (2 early miscarriages, including a twin mc)
My sister has had five pregnancies so far with only one of those ending in a healthy baby born at full term (3 early miscarriages, including a twin mc but she is currently half way through her 5th pregnancy and it all seems to be going well so fingers crossed she will have two healthy babies out of five pregnancies)
My Mum had four pregnancies and has four live children
Her Mum however (our Grandmother) had at least six pregnancies that we know of for sure, with only two of those ending in healthy babies born at full term and her losses included three stillbirths, one pre-term and two at term
She's no longer around, and even if she were i'm not sure it's something i'd be able to discuss with her as we weren't hugely close tbh but i do often wonder if she had some undiagnosed problem which could have contributed to her losses as it seems unlikely/unfair that one person could be so terribly unlucky in their journey to motherhood.
My Mum talks about "it" having "skipped a generation" (in reference to mine and my sisters losses) but i try not to think of it like that as there has been no reason found for either mine or my sister's miscarriages, and we've both gone on to have healthy babies afterwards, so i am hopeful it isn't something we will carry forwards or "pass on" to the next generation of women.